JDK-8072856 : Eliminate ProcessTools.getProcessId dependency on sun.management.VMManagement
Type:Bug
Component:core-svc
Affected Version:9
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2015-02-10
Updated:2015-06-04
Resolved:2015-02-12
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
test/lib/testlibrary/jdk/testlibrary/ProcessTools.java uses sun.management.VMManagement to implement getProcessId method.
JDK-8046092 will define a supported API to get PID.
Comments
But compilation (of e.g. test/lib/testlibrary/jdk/testlibrary/Utils.java depending on test/lib/testlibrary/jdk/testlibrary/ProcessTools.java) still fails unless we explicitly allow each test sun.management. One more line should be removed,
49: import sun.management.VMManagement;