United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4634399 : javax.imageio.ImageTypeSpecifier doesn't respect contract for equals and hashCod

Details
Type:
Bug
Submit Date:
2002-02-07
Status:
Resolved
Updated Date:
2003-08-11
Project Name:
JDK
Resolved Date:
2003-08-11
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (tiger)

Related Reports
Relates:

Sub Tasks

Description
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.

javax.imageio.ImageTypeSpecifier redefines
  equals(Object) but not
  hashCode()
javax.imageio.ImageTypeSpecifier$Banded redefines
  equals(Object) but not
  hashCode()
javax.imageio.ImageTypeSpecifier$Interleaved 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

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b15


                                     
2004-06-14
EVALUATION

Implemented the 3 missing hashCode() methods for the classes listed in the
description field.
###@###.### 2003-07-21
                                     
2003-07-21



Hardware and Software, Engineered to Work Together