Skip to content

Commit

Permalink
TCI - Disallow serializable
Browse files Browse the repository at this point in the history
Change-Id: Iea796dcd6c9acd3ccbcb150b6c2af435b22459fe
  • Loading branch information
jfaltermeier committed Mar 23, 2021
1 parent b8822e0 commit 64565b7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public TypeParser getParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pCo
if (EObjectSerializer.EOBJECT_TAG.equals(pLocalName)) {
return new EObjectDeserializer();
}
return super.getParser(pConfig, pContext, pURI, pLocalName);
final TypeParser parser = super.getParser(pConfig, pContext, pURI, pLocalName);
if (parser instanceof org.apache.xmlrpc.parser.SerializableParser) {
throw new IllegalArgumentException("A SerializableParser is not supported"); //$NON-NLS-1$
}
return parser;
}

/**
Expand Down

0 comments on commit 64565b7

Please sign in to comment.