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: PR libgcj/184 [was Re: Re: Some null pointer method invocations causes segmentation fault]


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 ]



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