problem with java.lang.Class.serialVersionUID
Tom Tromey
tromey@cygnus.com
Sun Oct 31 12:01:00 GMT 1999
>>>>> "Godmar" == Godmar Back <gback@cs.utah.edu> writes:
Godmar> I noticed that java.lang.Class does not provide a
Godmar> serialVersionUID. However, unless you'll want to match Sun's
Godmar> java.lang.Class one-to-one in all its internal glory, you'll
Godmar> need one.
I'm probably being dense, but why would we want to add this?
Godmar> However, when I now try to compile programs referring to
Godmar> java.lang.Class, such as the following:
Godmar> it fails [ ... ]
The compiler doesn't like Class or Object to differ from its internal
idea of how they look.
We have a patch somewhere to change this. I don't recall if it was
sent to a mailing list. Alex? I don't even remember if it was big
enough to require paperwork.
Tom
More information about the Java
mailing list