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

13 lines
334 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8219810
* @summary Verify ClassReader detects invalid method access flags combinations
* @build BadMethodFlags
* @compile/fail/ref=BadMethodFlagsTest.out -XDrawDiagnostics BadMethodFlagsTest.java
*/
public class BadMethodFlagsTest {
{
new BadMethodFlags().my_method();
}
}