-
Bug
-
Resolution: Fixed
-
P4
-
12
-
b15
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247617 | 11.0.9-oracle | Vicente Arturo Romero Zaldivar | P4 | Resolved | Fixed | b01 |
JDK-8231703 | 11.0.6 | Vicente Arturo Romero Zaldivar | P4 | Resolved | Fixed | b01 |
langtools/tools/javac/T8152616.java is missing @modules to declare the non-exported packages that the test makes use of. This is problem when the test is run with --illegal-access=deny, it only works now because these packages are opened for illegal access. The test should be updated to use @modules:
diff --git a/test/langtools/tools/javac/T8152616.java b/test/langtools/tools/javac/T8152616.java
--- a/test/langtools/tools/javac/T8152616.java
+++ b/test/langtools/tools/javac/T8152616.java
@@ -25,7 +25,8 @@
* @test
* @bug 8152616
* @summary Unit test for corner case of PrettyPrinting when SourceOutput is false
- * @run compile --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED T8152616.java
+ * @modules jdk.compiler/com.sun.tools.javac.api
+ jdk.compiler/com.sun.tools.javac.tree
* @run main T8152616
*/
diff --git a/test/langtools/tools/javac/T8152616.java b/test/langtools/tools/javac/T8152616.java
--- a/test/langtools/tools/javac/T8152616.java
+++ b/test/langtools/tools/javac/T8152616.java
@@ -25,7 +25,8 @@
* @test
* @bug 8152616
* @summary Unit test for corner case of PrettyPrinting when SourceOutput is false
- * @run compile --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED T8152616.java
+ * @modules jdk.compiler/com.sun.tools.javac.api
+ jdk.compiler/com.sun.tools.javac.tree
* @run main T8152616
*/
- backported by
-
JDK-8231703 langtools/tools/javac/T8152616.java missing @modules
- Resolved
-
JDK-8247617 langtools/tools/javac/T8152616.java missing @modules
- Resolved