Description
FULL PRODUCT VERSION :
java version " 1.8.0-ea "
Java(TM) SE Runtime Environment (build 1.8.0-ea-b79)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b20, mixed mode)
A DESCRIPTION OF THE PROBLEM :
COmpiler crashing with a followed exception:
java.lang.NullPointerException
at com.sun.tools.javac.util.ListBuffer.append(ListBuffer.java:131)
at com.sun.tools.javac.comp.Attr.fromAnnotations(Attr.java:3862)
at com.sun.tools.javac.comp.Attr.access$500(Attr.java:76)
at com.sun.tools.javac.comp.Attr$9.enterAnnotation(Attr.java:3850)
at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:134)
at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:123)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:514)
at com.sun.tools.javac.comp.Enter.main(Enter.java:473)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:990)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:865)
at com.sun.tools.javac.main.Main.compile(Main.java:517)
at com.sun.tools.javac.main.Main.compile(Main.java:376)
at com.sun.tools.javac.main.Main.compile(Main.java:365)
at com.sun.tools.javac.main.Main.compile(Main.java:356)
at com.sun.tools.javac.Main.compile(Main.java:76)
at com.sun.tools.javac.Main.main(Main.java:61)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
public class CompilerCrash {
@Target(ElementType.TYPE_USE) @interface TA { }
class E extends Exception { }
void m() throws @TA CompilerCrash.@TA E { }
}
---------- END SOURCE ----------
java version " 1.8.0-ea "
Java(TM) SE Runtime Environment (build 1.8.0-ea-b79)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b20, mixed mode)
A DESCRIPTION OF THE PROBLEM :
COmpiler crashing with a followed exception:
java.lang.NullPointerException
at com.sun.tools.javac.util.ListBuffer.append(ListBuffer.java:131)
at com.sun.tools.javac.comp.Attr.fromAnnotations(Attr.java:3862)
at com.sun.tools.javac.comp.Attr.access$500(Attr.java:76)
at com.sun.tools.javac.comp.Attr$9.enterAnnotation(Attr.java:3850)
at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:134)
at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:123)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:514)
at com.sun.tools.javac.comp.Enter.main(Enter.java:473)
at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:990)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:865)
at com.sun.tools.javac.main.Main.compile(Main.java:517)
at com.sun.tools.javac.main.Main.compile(Main.java:376)
at com.sun.tools.javac.main.Main.compile(Main.java:365)
at com.sun.tools.javac.main.Main.compile(Main.java:356)
at com.sun.tools.javac.Main.compile(Main.java:76)
at com.sun.tools.javac.Main.main(Main.java:61)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
public class CompilerCrash {
@Target(ElementType.TYPE_USE) @interface TA { }
class E extends Exception { }
void m() throws @TA CompilerCrash.@TA E { }
}
---------- END SOURCE ----------