jdk-24/test/langtools/tools/javac/8062359/UnresolvableClassNPEInAttrTest.java
2023-01-17 04:43:40 +00:00

18 lines
484 B
Java

/*
* @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 meth() {
new Undefined() {
void test() {
new Object() {};
}
};
}
}