Hi all,

At Topicus, we maintain a customized SerializableChecker with some additional 
checks. I was trying to fix some generics-warnings and noticed a strange thing 
about the writeObjectMethodCache. This variable is used in only 4 places, one 
is a clear, one a get and 2 are puts. Both puts take a Boolean as value, but 
the get checks if the value returned is a Method, which obviously can never 
happen. I think the 'writeObjectMethod' should be put into the map after line 
473:

        writeObjectMethod = cls.getDeclaredMethod("writeObject",
                        new Class[] { java.io.ObjectOutputStream.class });

Best regards,
Emond

Reply via email to