-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 1.4.2
-
tiger
-
generic, sparc
-
generic, solaris_2.6
The following problem was originally reported in 4634068.
There are a number of classes that do not respect the
implied contract for equals and hashCode. See, for example,
Joshua Bloch's book "Effective Java", items 7-8.
java.beans.IndexedPropertyDescriptor redefines
equals(Object) but not
hashCode()
java.beans.PropertyDescriptor redefines
equals(Object) but not
hashCode()
Problems found by applying automatic tools to JDK
libraries. However, manual inspectation of the classes
reveals the same problems.
-- iag@sfbay 2002-02-06
There are a number of classes that do not respect the
implied contract for equals and hashCode. See, for example,
Joshua Bloch's book "Effective Java", items 7-8.
java.beans.IndexedPropertyDescriptor redefines
equals(Object) but not
hashCode()
java.beans.PropertyDescriptor redefines
equals(Object) but not
hashCode()
Problems found by applying automatic tools to JDK
libraries. However, manual inspectation of the classes
reveals the same problems.
-- iag@sfbay 2002-02-06
- duplicates
-
JDK-4641061 PropertyDescriptor.hashCode() call produces incorrect result
- Closed
-
JDK-4770303 EJ: java.beans.PropertyDescriptor equals() overriden but not hashCode()
- Closed
- relates to
-
JDK-6582164 JavaBeans tests should be open source
- Resolved
-
JDK-4634068 JDK code doesn't respect contract for equals and hashCode
- Closed
-
JDK-4908704 Regression-test java/beans/PropertyDescriptor/bug4634390.java fails
- Closed