From: <cle...@jb...> - 2005-09-16 19:03:27
|
Geez... you're right... ObjectStreamClass checks for final fields only, and recalculates if it's not final: public class ObjectStreamClass implements Serializable { ..... private static Long getDeclaredSUID(Class cl) { try { Field f = cl.getDeclaredField("serialVersionUID"); int mask = Modifier.STATIC | Modifier.FINAL; if ((f.getModifiers() & mask) == mask) { f.setAccessible(true); return new Long(f.getLong(null)); } } catch (Exception ex) { } return null; } .... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895220#3895220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895220 |