1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8237067
 4  * @summary [lworld] Check good and bad selectors on a type name
 5  * @compile/fail/ref=CheckBadSelector.out -XDrawDiagnostics CheckBadSelector.java
 6  */
 7 
 8 primitive final class Point {
 9 
10     void badSelector() {
11         Class<?> c = int.class;
12         int i = int.default;
13         int x = int.whatever;
14     }
15 }