File a ticket + patch ;-) What else do you have in this custom SerializableChecker ? Maybe it is something that other users may benefit from and it can be included in the standard SerializableChecker and you'll not have to maintain it.
On Tue, Jan 25, 2011 at 2:06 PM, Emond Papegaaij <[email protected] > wrote: > 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 >
