Compiler crash - StackOverflowError
    Neal Gafter 
    neal at gafter.com
       
    Tue Jun 17 08:15:00 PDT 2008
    
    
  
Mark-
Yes, this is a bug.  Thanks for reporting it!
Regards,
Neal
On Tue, Jun 17, 2008 at 1:22 AM, Mark Mahieu <mark at twistedbanana.demon.co.uk>
wrote:
> The following class triggers a StackOverflowError in the compiler:
>
>
> class StackOverflow {
>
>        class Inner {
>                {=> String} ref = this#toString();
>        }
> }
>
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.StackOverflowError
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:970)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1060)
>        at com.sun.tools.javac.comp.Lower.makeOwnerThisN(Lower.java:1401)
>        at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1385)
>        at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:886)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1046)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1060)
>        at com.sun.tools.javac.comp.Lower.makeOwnerThisN(Lower.java:1401)
>        at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1385)
>        at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:886)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1046)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1060)
>        at com.sun.tools.javac.comp.Lower.makeOwnerThisN(Lower.java:1401)
>        at com.sun.tools.javac.comp.Lower.makeOwnerThis(Lower.java:1385)
>        at com.sun.tools.javac.comp.Lower.accessBase(Lower.java:886)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1046)
>        at com.sun.tools.javac.comp.Lower.access(Lower.java:1060)
>        ....
>
>
>
> Regards,
>
> Mark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080617/03ed92e0/attachment.html 
    
    
More information about the closures-dev
mailing list