PR libgcj/184 [was Re: Re: Some null pointer method invocations causes segmentation fault]
Bryce McKinlay
bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000
Bryce McKinlay wrote:
> public class NPE1
> {
> public static void main(String[] args)
> {
> NPE1 n = null;
> System.out.println (n.foo());
> }
>
> int x = 2;
>
> final int foo()
> {
> return x;
> }
> }
Update: I tried this on gcc-2.95.2 + java patches, and it worked fine using the
same libgcj. I think it is a compiler or libgcc bug.
regards
[ bryce ]
More information about the Java
mailing list