JDK-8354334 : Remove @ValueBased from ProcessHandle
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-04-10
  • Updated: 2025-05-05
  • Resolved: 2025-05-05
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 25
25 masterFixed
Related Reports
Relates :  
Description
The @jdk.internal.ValueBased annotation is used to drive javac warnings about synchronization on classes that will eventually become value classes.

Part of an older design for value classes is that an interface could declare that it only had value class implementations. That feature has since been abandoned. There will not be a future ability to declare that the interface ProcessHandle only has value class implementations.

Thus, there should no longer be warnings related to synchronization on ProcessHandle, and the @ValueBased annotation should no longer be applied.
Comments
Changeset: 65f188f2 Branch: master Author: Roger Riggs <rriggs@openjdk.org> Date: 2025-05-05 18:35:46 +0000 URL: https://git.openjdk.org/jdk/commit/65f188f29f1e9fe0f73d730a4c6029a7742c6d15
05-05-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24986 Date: 2025-05-01 13:36:13 +0000
01-05-2025