58 File file = new File(testSrc, myName + ".java"); |
58 File file = new File(testSrc, myName + ".java"); |
59 |
59 |
60 _assert(!testDir.exists()); |
60 _assert(!testDir.exists()); |
61 |
61 |
62 compile( |
62 compile( |
63 "-XaddExports:jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
63 "--add-exports", "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
64 "-XaddExports:jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED", |
64 "--add-exports", "jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED", |
65 "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
65 "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
66 "-XDaccessInternalAPI", |
66 "-XDaccessInternalAPI", |
67 "-proc:only", |
67 "-proc:only", |
68 "-processor", myName, |
68 "-processor", myName, |
69 "-Aexpect=false", |
69 "-Aexpect=false", |
70 file.getPath()); |
70 file.getPath()); |
71 |
71 |
72 testDir.mkdirs(); |
72 testDir.mkdirs(); |
73 _assert(testDir.exists()); |
73 _assert(testDir.exists()); |
74 |
74 |
75 compile( |
75 compile( |
76 "-XaddExports:jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
76 "--add-exports", "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
77 "-XaddExports:jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED", |
77 "--add-exports", "jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED", |
78 "-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
78 "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", |
79 "-XDaccessInternalAPI", |
79 "-XDaccessInternalAPI", |
80 "-proc:only", |
80 "-proc:only", |
81 "-processor", myName, |
81 "-processor", myName, |
82 "-Aexpect=true", |
82 "-Aexpect=true", |
83 file.getPath()); |
83 file.getPath()); |