The newly added test jdk/javadoc/doclet/testUnexported/TestUnexported.java javac build fails, the log snippet is show below:
/tmp/tone/run/jtreg/jdk-repo/test/langtools/tools/lib/toolbox/JavacTask.java:46: error: package com.sun.tools.javac.api is not visible
import com.sun.tools.javac.api.JavacTaskImpl;
^
(package com.sun.tools.javac.api is declared in module jdk.compiler, which does not export it to the unnamed module)
/tmp/tone/run/jtreg/jdk-repo/test/langtools/tools/lib/toolbox/JavacTask.java:47: error: package com.sun.tools.javac.api is not visible
import com.sun.tools.javac.api.JavacTool;
^
(package com.sun.tools.javac.api is declared in module jdk.compiler, which does not export it to the unnamed module)
Note: /tmp/tone/run/jtreg/jdk-repo/test/langtools/tools/lib/toolbox/AbstractTask.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
/tmp/tone/run/jtreg/jdk-repo/test/langtools/tools/lib/toolbox/JavacTask.java:46: error: package com.sun.tools.javac.api is not visible
import com.sun.tools.javac.api.JavacTaskImpl;
^
(package com.sun.tools.javac.api is declared in module jdk.compiler, which does not export it to the unnamed module)
/tmp/tone/run/jtreg/jdk-repo/test/langtools/tools/lib/toolbox/JavacTask.java:47: error: package com.sun.tools.javac.api is not visible
import com.sun.tools.javac.api.JavacTool;
^
(package com.sun.tools.javac.api is declared in module jdk.compiler, which does not export it to the unnamed module)
Note: /tmp/tone/run/jtreg/jdk-repo/test/langtools/tools/lib/toolbox/AbstractTask.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
- caused by
-
JDK-8254622 Hide superclasses from conditionally exported packages
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/9502ab0b
-
Review(master) openjdk/jdk/24673