United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4738710 : API: Calendar comparison methods should be improved

Details
Type:
Bug
Submit Date:
2002-08-29
Status:
Resolved
Updated Date:
2003-11-05
Project Name:
JDK
Resolved Date:
2003-11-05
Component:
core-libs
OS:
generic,windows_2000
Sub-Component:
java.util:i18n
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (b28)

Related Reports
Duplicate:

Sub Tasks

Description
There are a few problems with the current spec for comparing date/time with the Calendar methods:

  - The after() and before() methods take an Object and return false if the given Object isn't a Calendar instance. (4682471)

  - equals() documentation doesn't mention that the lenient, firstDayOfWeek, etc. are parameters for the comparison. This must be documented.

  - Calendar should support Comparable so that only the time values can be compared (without taking other parameters (lenient, firstDayOfWeek, etc.).

  - These methods shouldn't modify the state of this and given Objects.

###@###.### 2002-08-29

                                    

Comments
EVALUATION

To be fixed in Tiger.
###@###.### 2002-08-29
                                     
2002-08-29
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b28
tiger-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together