Fwd: Compiler Crash

Neal Gafter neal at gafter.com
Sun May 11 20:19:45 PDT 2008

Forwarded FYI

---------- Forwarded message ----------
From: Neal Gafter <neal at gafter.com>
Date: Sat, May 10, 2008 at 8:45 PM
Subject: Re: Compiler Crash
To: Tony Morris <tmorris at tmorris.net>

Long story short: this is a symptom of a latent bug in javac (I've filed a
bug report).  I have updated the prototype to work around it to prevent the
crash, but the bug will have to be fixed in the core compiler eventually.
Below is a javac regression test that demonstrates a symptom of the
underlying problem in the SE 6 javac.  Compile with -Xlint:divzero.  You
should get no warning but the compiler does produce a warning.



 * @summary Test proper scoping of @SuppressWarnings in the presence of
 * @author


 * @clean

 * @compile -Xlint:divzero -Werror


class SuppressScope2 {
    static class Y {
        final static int i = X.K + 2;

    static class X {
        final static int K = 1 / 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20080511/3b99a703/attachment.html 

More information about the closures-dev mailing list