This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
libgcj/100: Class.hashCode aborts
- To: java-gnats at sourceware dot cygnus dot com
- Subject: libgcj/100: Class.hashCode aborts
- From: Jeff Sturm <jsturm at sigma6 dot com>
- Date: 12 Nov 1999 05:56:54 -0000
- Reply-To: Jeff Sturm <jsturm at sigma6 dot com>
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, Jeff Sturm <jsturm@sigma6.com>
>Number: 100
>Category: libgcj
>Synopsis: Class.hashCode aborts
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 11 22:00:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Jeff Sturm
>Release: current cvs
>Organization:
>Environment:
[ fails at least on my x86 Debian 2.0 box when
dynamic linking -- Tom
PS static linking works ]
>Description:
public class HashTest {
public static void main(String[] args) {
HashTest ht = new HashTest();
System.err.println(ht.hashCode());
System.err.println(ht.getClass().hashCode());
}
}
gives me:
134770680
Aborted
gdb says:
Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0 0x0 in ??()
#1 0x804ad4f in HashTest.main (args=0x806eff0) at
HashTest.java:6
Weird... hashCode() works in java.lang.Object, but fails in
java.lang.Class, which inherits from Object and does not override
hashCode().
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: