This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Class.hashCode() broken?


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]