< prev index next >
test/tools/javac/diags/Example.java
Print this page
*** 234,243 ****
--- 234,244 ----
// hack to automatically add exports; a better solution would be to grep the
// source for import statements or a magic comment
for (File pf: procFiles) {
if (pf.getName().equals("CreateBadClassFile.java")) {
+ pOpts.add("--add-modules=jdk.jdeps");
pOpts.add("--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED");
}
}
new Jsr199Compiler(verbose).run(null, null, false, pOpts, procFiles);
< prev index next >