This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Class.hashCode() broken?
- To: Jeff Sturm <jsturm@sigma6.com>
- Subject: Re: Class.hashCode() broken?
- From: Tom Tromey <tromey@cygnus.com>
- Date: Mon, 28 Jun 1999 09:32:08 -0700
- Cc: java-discuss@sourceware.cygnus.com
- References: <3773CCAC.8DBF64E6@sigma6.com>
>>>>> "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