< prev index next >
langtools/test/tools/javac/diags/examples/InvalidStaticInterface/InvalidStaticInterface.java
Print this page
*** 23,33 ****
// key: compiler.misc.invalid.static.interface
// key: compiler.misc.bad.class.file.header
// key: compiler.err.cant.access
// options: -processor CreateBadClassFile
! // run: exec -XaddExports:jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
/* The annotation processor will create an invalid classfile with version 51.0
* and a static method in an interface. Loading the classfile will produce
* the diagnostic.
*/
--- 23,33 ----
// key: compiler.misc.invalid.static.interface
// key: compiler.misc.bad.class.file.header
// key: compiler.err.cant.access
// options: -processor CreateBadClassFile
! // run: exec --add-exports jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
/* The annotation processor will create an invalid classfile with version 51.0
* and a static method in an interface. Loading the classfile will produce
* the diagnostic.
*/
< prev index next >