JDK-8078099 : (process) ProcessHandle should uniquely identify processes
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-04-17
  • Updated: 2016-06-13
  • Resolved: 2015-07-15
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.

To download the current JDK release, click here.
JDK 9
9 b74Fixed
Related Reports
Blocks :  
Blocks :  
Description
Process ids have a lifetime co-incident with the life of the process.
Theoretically, the pid can be re-used immediately after process termination.
To ensure that actions on a ProcessHandle act on the intended process,
a value unique to the process should be included in the check for equality
and checked on each action on the process.
It has been suggested that the process start time can fulfill this need.

Ref: http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-April/032883.html
Comments
Review thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-June/034220.html
14-07-2015