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

CTW fails to build after JDK-8334733

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 24, 25
    • hotspot
    • master

      JDK-8334733 removed the filter for ModuleInfoWriter, which now causes standalone CTW to fail when building:

      ```
      $ export JAVA_HOME=<point to fastdebug build>
      $ export PATH=$JAVA_HOME/bin:$PATH
      $ cd test/hotspot/jtreg/testlibrary/ctw
      $ make

      /home/shipilev/shipilev-jdk/build/linux-x86_64-server-fastdebug/images/jdk/bin/../bin/javac --add-exports java.base/jdk.internal.jimage=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports java.base/jdk.internal.reflect=ALL-UNNAMED --add-exports java.base/jdk.internal.access=ALL-UNNAMED -sourcepath src -d build/classes -cp dist/wb.jar @filelist
      ../../../../../test/lib/jdk/test/lib/util/ModuleInfoWriter.java:44: error: package jdk.internal.module is not visible
      import jdk.internal.module.ModuleResolution;
                         ^
        (package jdk.internal.module is declared in module java.base, which does not export it to the unnamed module)
      ../../../../../test/lib/jdk/test/lib/util/ModuleInfoWriter.java:45: error: package jdk.internal.module is not visible
      import jdk.internal.module.ModuleTarget;
                         ^
        (package jdk.internal.module is declared in module java.base, which does not export it to the unnamed module)
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      2 errors
      make: *** [dist/ctw.jar] Error 1
      ```

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: