JDK-8226785 : MandatoryWarningHandler.java contains implementation of Object.equals functionality
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-06-26
  • Updated: 2019-07-01
  • Resolved: 2019-06-26
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 14
14 b03Fixed
Related Reports
Relates :  
Relates :  
Description
The javac class MandatoryWarningHandler.java contains a local copy of of the logic of the two-argument Objects.equals method. As a refactoring, the library code should be used instead.

The method is named "equal" rather than "equals" and escaped previous passes to replace such local methods (JDK-7041136).
Comments
Review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-June/013509.html
26-06-2019