jdk-24/test/langtools/tools/javac/classreader/8219810/BadFieldFlagsTest.java
Archie L. Cobbs 44be5edf5a 8219810: javac throws NullPointerException
Reviewed-by: vromero
2023-01-04 17:50:32 +00:00

13 lines
345 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8219810
* @summary Verify ClassReader detects invalid field access flags combinations
* @build BadFieldFlags
* @compile/fail/ref=BadFieldFlagsTest.out -XDrawDiagnostics BadFieldFlagsTest.java
*/
public class BadFieldFlagsTest {
{
System.out.println(new BadFieldFlags().my_field);
}
}