JDK-8154296 : Test cases serviceability/sa/DeadlockDetectionTest.java TestClassLoaderStats.java, TestStackTrace.java are failing in JDK9 Build 114
  • Type: Bug
  • Component: core-svc
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-04-15
  • Updated: 2016-04-22
  • Resolved: 2016-04-22
Related Reports
Duplicate :  
Description
Test name(s) : 
serviceability/sa/DeadlockDetectionTest.java serviceability/sa/TestClassLoaderStats.java serviceability/sa/TestStackTrace.java

JDK tested: JDK9 buld 114 
OS tested: Linux
Is it platform specific? NO
The is failure reproduced: always 
            
General description: 
Getting following error:

/media/disk2/openjdktest/openjdk9/jdk9114/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;
                        ^
/media/disk2/openjdktest/openjdk9/jdk9114/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
/media/disk2/openjdktest/openjdk9/jdk9114/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
/media/disk2/openjdktest/openjdk9/jdk9114/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
/media/disk2/openjdktest/openjdk9/jdk9114/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
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
result: Failed. Compilation failed: Compilation failed


test result: Failed. Compilation failed: Compilation failed