JDK-8269172 : Add java.util.Objects.newIdentity method
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-22
  • Updated: 2021-06-23
  • Resolved: 2021-06-23
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.
Other
repo-valhallaFixed
Related Reports
Cloners :  
Description
Replace the java.util.Objects.newIdentity() method with the version slated for JDK 17
and remove the previous placeholder.

/**
 * {@return a new instance of an unspecified class}
 * The object has a unique identity; no other references to it exist.
 * It can be used for synchronization, or where a placeholder Object is needed.
 * Use this method to avoid relying on the {@linkplain Object#Object() Object constructor}.
 *
 * @since 17
 */
public static Object newIdentity() {...}