jdk-24/test/langtools/tools/javac/nested/StaticNestedNonStaticSuper.java
2023-03-24 14:13:21 +00:00

14 lines
394 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8291154
* @summary Disallow static nested subclasses of non-static nested classes
* @compile/fail/ref=StaticNestedNonStaticSuper.out -XDrawDiagnostics StaticNestedNonStaticSuper.java
*/
class StaticNestedNonStaticSuper{
public abstract class NonStaticNested {
public static class StaticNested extends NonStaticNested {
}
}
}