-
Bug
-
Resolution: Fixed
-
P4
-
9, 10
-
None
The sun/management/jdp/JdpController.getProcessId() method uses an old MBean hack to try and get the current process id. This code does not work and is also not a generic method that would work for other pluggable JVMs, resulting in no processId context being set in the JDP packets. The code should be changed to leverage the new ProcessHandle.current().pid() method.
- relates to
-
JDK-8198539 Cleanup of unused imports in java/util/jar/Attributes.java (java.base) and JdpController.java (jdk.management.agent)
-
- Closed
-