Description
The patch for JDK-6563143 has introduced a warning for overriding equals without hashCode, this fix has to be made more precise, such as warning if equals is overridden and hasCode is Objects.hashCode rather than requiring hashCode to be overriden in the same type.
Also add source info to the warnings.
Also add source info to the warnings.
Attachments
Issue Links
- duplicates
-
JDK-8008712 Noisy warnings from javax.print.attribute.standard.*
- Resolved
- relates to
-
JDK-8009138 javac, equals-hashCode warning tuning
- Closed
-
JDK-6563143 javac should issue a warning for overriding equals without hashCode
- Closed
-
JDK-8182323 Add Hashable interface and compiler checking for hashCode/equals contract
- Closed