langtools/test/tools/javac/8062359/UnresolvableClassNPEInAttrTest.java
author shade
Tue, 02 Feb 2016 18:15:15 +0300
changeset 35639 f34e7e8b4eac
parent 27851 5f28577d20f6
permissions -rw-r--r--
8148787: StringConcatFactory exactness check produces bad bytecode when a non-arg concat is requested Reviewed-by: vlivanov, psandoz

/*
 * @test /nodynamiccopyright/
 * @bug 8062359
 * @summary NullPointerException in Attr when type-annotating an anonymous
 *          inner class in an unresolvable class
 * @compile/fail/ref=UnresolvableClassNPEInAttrTest.out -XDrawDiagnostics UnresolvableClassNPEInAttrTest.java
 */

public class UnresolvableClassNPEInAttrTest {
    public static void main(String[] args) {
        new Undefined() {
            void test() {
                new Object() {};
            }
        };
    }
}