Class.hashCode() broken?

Tom Tromey tromey@cygnus.com
Mon Jun 28 09:32:00 GMT 1999


>>>>> "Jeff" == Jeff Sturm <jsturm@sigma6.com> writes:

Jeff> public class HashTest {
Jeff> public static void main(String[] args) {
Jeff> HashTest ht = new HashTest();
Jeff> System.err.println(ht.hashCode());
Jeff> System.err.println(ht.getClass().hashCode());
Jeff> }
Jeff> }
Jeff> gives me:
Jeff> 134770680
Jeff> Aborted
I see this too, but only when I compile with shared libraries. If I
make a static executable, it works.
I haven't investigated this enough to know what is causing it. My
initial probe indicated that it was a null slot in the vtable, but I'm
not certain that I really was looking at the right thing.
T


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /