Test TestUnexported.java javac build fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: tools
    • None
    • b20
    • generic
    • generic

      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

            Assignee:
            Sendao Yan
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: