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

[TESTBUG] XpatchJavaBase.java compilation failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b126
    • generic
    • generic

      hotspot/test/testlibrary/jdk/test/lib/Utils.java:54: error: Unsafe is not visible because package jdk.internal.misc is not visible
      import jdk.internal.misc.Unsafe;
                              ^
      hotspot/test/testlibrary/jdk/test/lib/Utils.java:100: error: cannot find symbol
          private static Unsafe unsafe = null;
                         ^
        symbol: class Unsafe
        location: class Utils
      hotspot/test/testlibrary/jdk/test/lib/Utils.java:357: error: cannot find symbol
          public static synchronized Unsafe getUnsafe() {
                                     ^
        symbol: class Unsafe
        location: class Utils
      hotspot/test/testlibrary/jdk/test/lib/Utils.java:360: error: cannot find symbol
                      Field f = Unsafe.class.getDeclaredField("theUnsafe");
                                ^
        symbol: class Unsafe
        location: class Utils
      hotspot/test/testlibrary/jdk/test/lib/Utils.java:362: error: cannot find symbol
                      unsafe = (Unsafe) f.get(null);
                                ^
        symbol: class Unsafe
        location: class Utils

            gtriantafill George Triantafillou (Inactive)
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: