On Sat, Nov 22, 2003 at 07:57:55AM -0700, Eric Blake wrote: > Michael Koch wrote: > > > >Serializable classes have to have their fields in the same order as in > >in SUNs classes because of serialization issues. > > I thought we already had the style rule that all serialized classes provide > an explicit serialVersionUID - because we cannot depend on the compiler to > generate the same serial version as Sun. Case in point: when a class > literal appears in the class, Sun emits a one-argument class$ method, but > jikes emits a two-argument version; this affects the serial version. Also, > as long as the serial version is correct, deserialization is name-based > (not offset-based). Therefore, field ordering does not matter, so long as > we provide the explicit UID.
Thx for clarifying this. It wasnt clear to me. I thought its always offset based. Michael _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath