Compiler crash
Mark Mahieu
mark at twistedbanana.demon.co.uk
Wed May 21 11:07:04 PDT 2008
Thanks for the update. I've been firing off these bug reports as I
see them because I'll forget them otherwise, but from my perspective
there's no massive urgency about any of them - the prototype works
fine 99% of the time, and I have workarounds for the rest.
I will give you a break from my bug reports soon though!
Mark
On 21 May 2008, at 16:38, Neal Gafter wrote:
> Thanks! I'll fix this asap.
>
> By the way, I'm currently working to get the closures
> implementation promoted to the GPLv2 mercurial repository. Once
> that is done I'll work again on bug fixes.
>
> Regards,
> Neal
>
> On Wed, May 21, 2008 at 12:12 AM, Mark Mahieu
> <mark at twistedbanana.demon.co.uk> wrote:
> This class crashes the 2008-05-11 prototype:
>
>
> public class Crash {
>
> public static void main(String[] args) {
>
> {=> int throws Exception} fn = {=> throw new Exception();};
> }
> }
>
>
> java.lang.NullPointerException
> at com.sun.tools.javac.comp.Lower.unbox(Lower.java:2603)
> at com.sun.tools.javac.comp.Lower.boxIfNeeded(Lower.java:2568)
> at com.sun.tools.javac.comp.Lower.translate(Lower.java:1917)
> at com.sun.tools.javac.comp.Lower.visitReturn(Lower.java:2999)
> at com.sun.tools.javac.tree.JCTree$JCReturn.accept
> (JCTree.java:1314)
> at com.sun.tools.javac.tree.TreeTranslator.translate
> (TreeTranslator.java:62)
> at com.sun.tools.javac.comp.Lower.translate(Lower.java:1905)
> at com.sun.tools.javac.tree.TreeTranslator.translate
> (TreeTranslator.java:74)
> at com.sun.tools.javac.tree.TreeTranslator.visitBlock
> (TreeTranslator.java:164)
> at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2972)
> at com.sun.tools.javac.tree.JCTree$JCBlock.accept
> (JCTree.java:859)
> at com.sun.tools.javac.tree.TreeTranslator.translate
> (TreeTranslator.java:62)
> at com.sun.tools.javac.comp.Lower.translate(Lower.java:1905)
> at com.sun.tools.javac.tree.TreeTranslator.visitMethodDef
> (TreeTranslator.java:148)
> at com.sun.tools.javac.comp.Lower.visitMethodDefInternal
> (Lower.java:2294)
> at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:
> 2213)
> ....
>
>
>
> Regards,
>
> Mark
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080521/71640663/attachment.html
More information about the closures-dev
mailing list