JDK-4738710 : API: Calendar comparison methods should be improved
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_2000
  • CPU: generic,x86
  • Submitted: 2002-08-29
  • Updated: 2017-05-16
  • Resolved: 2003-11-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b28Fixed
Related Reports
Duplicate :  
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b28 tiger-beta
14-06-2004

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