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

test/lib/share/classes/jdk/test/lib/Utils.java introduced dependency to java.base/jdk.internal.misc

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b114
    • CPU:
      generic
    • OS:
      generic

      Description

      Two tests failed by missing dependency.
      jdk/internal/ref/Cleaner/ExitOnThrow.java
      sun/misc/SunMiscSignalTest.java

      From compilation error, it seems test/lib/share/classes/jdk/test/lib/Utils.java introduced dependencies on java.base/jdk.internal.misc.

      See:
      /scratch/jenkins/workspace/9-dev-tier1-solaris-x64/test/lib/share/classes/jdk/test/lib/Utils.java:51: error: Unsafe is not visible because package jdk.internal.misc is not visible
      import jdk.internal.misc.Unsafe;
                              ^
      /scratch/jenkins/workspace/9-dev-tier1-solaris-x64/test/lib/share/classes/jdk/test/lib/Utils.java:86: error: cannot find symbol
          private static Unsafe unsafe = null;
                         ^
        symbol: class Unsafe
        location: class Utils
      /scratch/jenkins/workspace/9-dev-tier1-solaris-x64/test/lib/share/classes/jdk/test/lib/Utils.java:375: error: cannot find symbol
          public static synchronized Unsafe getUnsafe() {
                                     ^
        symbol: class Unsafe
        location: class Utils
      /scratch/jenkins/workspace/9-dev-tier1-solaris-x64/test/lib/share/classes/jdk/test/lib/Utils.java:378: error: cannot find symbol
                      Field f = Unsafe.class.getDeclaredField("theUnsafe");
                                ^
        symbol: class Unsafe
        location: class Utils
      /scratch/jenkins/workspace/9-dev-tier1-solaris-x64/test/lib/share/classes/jdk/test/lib/Utils.java:380: error: cannot find symbol
                      unsafe = (Unsafe) f.get(null);
                                ^
        symbol: class Unsafe
        location: class Utils
      5 errors
      result: Failed. Compilation failed: Compilation failed

        Attachments

          Activity

            People

            • Assignee:
              xiaofeya Xiaofeng Yang
              Reporter:
              xiaofeya Xiaofeng Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: