13 lines
345 B
Java
Raw Normal View History

/*
* @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);
}
}