1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8197911
 4  * @summary Check that valueness is deduced from class files and has the appropriate effect.
 5  * @compile FlattenableFlagFromClass.java
 6  * @compile/fail/ref=CheckFlattenableFlagFromClass.out -XDrawDiagnostics CheckFlattenableFlagFromClass.java
 7  */
 8 
 9 public class CheckFlattenableFlagFromClass {
10     void foo(FlattenableFlagFromClass f) {
11         f.v = null; // Error.
12         f.va[0] = null; // Error.
13     }
14 }