Blocks :
|
|
Duplicate :
|
|
Relates :
|
In Jigsaw Milestone Ana, module boundaries will be enforced. Tests that use JDK internal APIs require adjustments to work with module boundaries. jdk test lib/testlibrary/jdk/testlibrary/ProcessTools.java getProcessId() use internal APIs for getting current process id, this should be re-examined. To remove the dependency on sun.management.VMManagement in this test lib, it's possible to use a standard library API for getting the process id: - Enhance Process API in JDK-8046092 JEP 102: Process API Updates ProcessTools.java getProcessId() is used in below tests: com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java sun/tools/jcmd/TestJcmdSanity.java sun/tools/jmap/BasicJMapTest.java sun/tools/jps/JpsBase.java sun/tools/jstack/BasicJStackTest.java sun/tools/jstatd/JstatdTest.java