1 /*
 2  * @test /nodynamiccopyright/
 3  * @summary Check valueness via __value__ annotation
 4  * @bug 8221699
 5  * @compile/fail/ref=ValueAnnotationTest.out -XDrawDiagnostics -XDenablePrimitiveClasses ValueAnnotationTest.java
 6  */
 7 
 8 primitive
 9 class ValueAnnotationTest01 extends Object { 
10 }
11 
12 primitive
13 class ValueAnnotationTest02 { 
14 }
15 
16 primitive
17 class ValueAnnotationTest03  { 
18     int x = 10;
19     ValueAnnotationTest03() {
20         x = 20;
21     }
22 }
23 
24 primitive
25 interface ValueAnnotationTest04 { 
26 }