sigsegv?
Bryce McKinlay
bryce@mckinlay.net.nz
Mon Nov 10 00:57:00 GMT 2003
On Nov 10, 2003, at 11:20 AM, Tom Tromey wrote:
> Has anybody else seen SEGV handling stop working?
> I got a crash from one today, which I find very surprising...
> I'm using x86 RHL 9.
Seems to work for me (on RHL 9 also):
public class Null
{
Object a;
public static void main(String args[])
{
new Null().meth();
}
void meth()
{
System.out.println (a.hashCode());
}
}
$ gcj Null.java --main=Null -g -O2
$ ./a.out
Exception in thread "main" java.lang.NullPointerException
at Null.meth (Null.java:12)
at Null.main (Null.java:7)
Regards,
Bryce.
More information about the Java
mailing list