--- a/langtools/test/tools/javac/T6358166.java Tue Mar 15 13:48:30 2016 -0700
+++ b/langtools/test/tools/javac/T6358166.java Thu Mar 17 19:04:28 2016 +0000
@@ -56,9 +56,15 @@
JavacFileManager fm = new JavacFileManager(new Context(), false, null);
JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + self + ".java");
- test(fm, f, "-verbose", "-d", ".");
+ String addExports = "-XaddExports:"
+ + "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED,"
+ + "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED,"
+ + "jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED,"
+ + "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED";
- test(fm, f, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self);
+ test(fm, f, addExports, "-verbose", "-d", ".");
+
+ test(fm, f, addExports, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self);
}
static void test(JavacFileManager fm, JavaFileObject f, String... args) throws Throwable {