More exceptions have to be added to the current patch.
The exceptions are:
- no warning for Object
- no warnings for interface method declarations.
- no warning for Attribute declarations.
- no warning for abstract classes
- in general, no warnings for anon inner classes implementing an interface that defines a method that is override equivalent with Object.equals.
The exceptions are:
- no warning for Object
- no warnings for interface method declarations.
- no warning for Attribute declarations.
- no warning for abstract classes
- in general, no warnings for anon inner classes implementing an interface that defines a method that is override equivalent with Object.equals.
- relates to
-
JDK-8226561 javac throws NullPointerException in Check.checkClassOverrideEqualsAndHash
-
- Closed
-
-
JDK-8008436 javac should not issue a warning for overriding equals without hasCode if hashCode has been overriden by a superclass
-
- Closed
-
-
JDK-8182323 Add Hashable interface and compiler checking for hashCode/equals contract
-
- Closed
-