test/tools/javac/8062359/UnresolvableClassNPEInAttrTest.java

Mon, 17 Oct 2016 21:20:17 -0700

author
asaha
date
Mon, 17 Oct 2016 21:20:17 -0700
changeset 3306
867c01c1ae44
parent 2615
4d2222373842
permissions
-rw-r--r--

8168115: Remove and retag jdk8u122-b03 in 8u repo
Reviewed-by: coffeys

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8062359
     4  * @summary NullPointerException in Attr when type-annotating an anonymous
     5  *          inner class in an unresolvable class
     6  * @compile/fail/ref=UnresolvableClassNPEInAttrTest.out -XDrawDiagnostics UnresolvableClassNPEInAttrTest.java
     7  */
     9 public class UnresolvableClassNPEInAttrTest {
    10     public static void main(String[] args) {
    11         new Undefined() {
    12             void test() {
    13                 new Object() {};
    14             }
    15         };
    16     }
    17 }

mercurial