1 /*
 2  * @test /nodynamiccopyright/
 3  * @summary Check that a concrete class is not allowed to be the super class of a primitive class
 4  *
 5  * @compile/fail/ref=CheckExtends.out -XDrawDiagnostics CheckExtends.java
 6  */
 7 
 8 final primitive class CheckExtends extends Object {
 9     static class NestedConcrete {}
10     static primitive class NestedPrimitive extends NestedConcrete {}
11 }