On 11/04/2014 09:01, Ivan Gerasimov wrote:
Hello everybody!

ObjectStreamClass#forClass() function is allowed to return null, if the local VM does not have the corresponding local class. Because of that, NPE can be encountered during serialization through a subclass of ObjectOutputStream.

Would you please help review the fix?

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8039396
WEBREV: http://cr.openjdk.java.net/~igerasim/8039396/0/webrev/
The fix looks okay to me, a bit of a corner case but okay.

The test looks useful. A minor suggestion is to shorten the lines a bit to make future side-by-side reviews easier.

-Alan.

Reply via email to