Description
AbstractIoBuffer uses ObjectStreamClass.lookup(Class) which returns null for classes that do not implement Serializable. This in turn leads to a NullPointerException a few lines below in resolveClass(ObjectStreamClass) where the ObjectStreamClass-parameter is null.
Deserialising a non-serialisable class is completely legal, instances of such a class will already fail to serialise so they will never get to deserialisation.
Using ObjectStreamClass.lookupAny(Class) will solve this issue, but it is not available before Java 6.
Attachments
Attachments
Issue Links
- is a clone of
-
DIRMINA-622 Initialise return ByteBuffer from PoolByteBufferAllokator with 0
- Closed
- is cloned by
-
DIRMINA-824 AbstractIoBuffer.getObject cannot handle non-serializable class
- Closed