langtools/test/tools/javac/T6358166.java
changeset 40308 274367a99f98
parent 37848 3c8ff4204d2d
equal deleted inserted replaced
40306:1a0fcaf3f2ed 40308:274367a99f98
    54 
    54 
    55         JavacFileManager fm = new JavacFileManager(new Context(), false, null);
    55         JavacFileManager fm = new JavacFileManager(new Context(), false, null);
    56         JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + self + ".java");
    56         JavaFileObject f = fm.getJavaFileObject(testSrc + File.separatorChar + self + ".java");
    57 
    57 
    58         List<String> addExports = Arrays.asList(
    58         List<String> addExports = Arrays.asList(
    59                 "-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
    59                 "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
    60                 "-XaddExports:jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
    60                 "--add-exports", "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
    61                 "-XaddExports:jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED",
    61                 "--add-exports", "jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED",
    62                 "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED");
    62                 "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED");
    63 
    63 
    64         test(fm, f, addExports, "-verbose", "-d", ".");
    64         test(fm, f, addExports, "-verbose", "-d", ".");
    65 
    65 
    66         test(fm, f, addExports, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self);
    66         test(fm, f, addExports, "-verbose", "-d", ".", "-XprintRounds", "-processorpath", ".", "-processor", self);
    67     }
    67     }