Closures prototype javac crash
Neal Gafter
neal at gafter.com
Mon Aug 11 19:32:22 PDT 2008
Alex-
Thanks for the bug report!
I've just pushed an update of the prototype that fixes this. It is possible
that this fixes other problems with verification, but I have not check that
yet.
Regards,
Neal
On Mon, Aug 11, 2008 at 2:10 PM, Alex Buckley <Alex.Buckley at sun.com> wrote:
> If you don't have the 'return 2;' line in, javac complains about a missing
> return. If you do have the 'return 2;' line in, javac crashes.
>
> public class A {
> public static void main(String[] a) {
> System.out.println(new A().work());
> }
>
> int work() {
> { ==> int } x = { ==> return 1; };
> x.invoke();
> return 2;
> }
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080811/37df9a52/attachment.html
More information about the closures-dev
mailing list