1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8211910 8215246
 4  * @summary Reinstate support for local value classes.
 5  * @compile/fail/ref=ValueModifierTest.out -XDrawDiagnostics -XDdev -XDenablePrimitiveClasses ValueModifierTest.java
 6  */
 7 
 8 public class ValueModifierTest {
 9     interface Value {}
10     void foo() {
11         new primitive Value() {};
12     }
13     void goo() {
14         primitive class Value {}
15         new Value() {};
16         new primitive Value() {};
17         new Value();
18     }
19 }