This is the mail archive of the java-prs@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]

libgcj/100: Class.hashCode aborts



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

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