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

jdk/javadoc/doclet/testRelatedPackages/TestRelatedPackages.java fails to compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: tools

      Description

      ```
      /data1/jiefu/docker/jdk/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)
      /data1/jiefu/docker/jdk/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: /data1/jiefu/docker/jdk/test/langtools/tools/lib/toolbox/AbstractTask.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      2 errors

      TEST RESULT: Failed. Compilation failed: Compilation failed


      /data1/jiefu/docker/jdk/test/langtools/tools/lib/toolbox/JavacTask.java:365: error: Result.exitCode in package com.sun.tools.javac.main is not accessible
                  return taskImpl.doCall().exitCode;
                                          ^
        (package com.sun.tools.javac.main is declared in module jdk.compiler, which does not export it to the unnamed module)
      Note: /data1/jiefu/docker/jdk/test/langtools/tools/lib/toolbox/AbstractTask.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 error

      TEST RESULT: Failed. Compilation failed: Compilation failed
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: