Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8354766

Test TestUnexported.java javac build fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • tools
    • None
    • master
    • 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

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

              Created:
              Updated:
              Resolved: