'no enclosing instance' error

Neal Gafter neal at gafter.com
Tue Jun 17 08:13:48 PDT 2008


Mark-

Thanks for the report!  This is definitely a bug.

On Tue, Jun 17, 2008 at 1:35 AM, Mark Mahieu <mark at twistedbanana.demon.co.uk>
wrote:

> While producing the StackOverflowError test case I noticed that this
> doesn't compile either - perhaps it's related:
>
>
> class NoEnclosingInstance {
>
>        {=> String} ref = this#toString();
> }
>
>
> NoEnclosingInstance.java:3: no enclosing instance of type
> NoEnclosingInstance is in scope
>        {=> String} ref = this#toString();
>                              ^
>
>
> Regards,
>
> Mark
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080617/79ca8933/attachment.html 


More information about the closures-dev mailing list