JDK-8256861 : Records: Details of implicitly declared equals method has been superseded in implementation
  • Type: Bug
  • Component: specification
  • Sub-Component: language
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-23
  • Updated: 2020-12-11
  • Resolved: 2020-12-04
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 16
16 b28Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The draft specification for the implicitly declared `equals` method for record classes is incorrect when dealing with primitive types (specifically around equality of `NaN`). The implementation has already been changed. The specification needs updating to match the implementation.

Also removing stale text in 1.5 describing records as a preview feature.