Hessian (Java) deserialization of class which is not in the classpath does not raise an error

19 views Asked by At

Is there a way to cause Hessian deserialization to throw an exception if a class is missing on the classpath?

In How does serialization tool skip unknown fields during deserialization? a comment says that "hessian transforms the unknown type to a Hashmap without throwing exceptions".

This is the behaviour I am watching, and which led to an error when the object is serialized again and sent back, because the type is now a HashMap.

0

There are 0 answers