JDK-4741194 : (cal) API: add() and roll() methods throws IllegalArgumentException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-09-04
  • Updated: 2024-04-02
  • Resolved: 2023-04-20
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.
JDK 21
21 b20Fixed
Related Reports
Relates :  
Description
The add and roll methods in GregorianCalendar calls complete() before performing the operation. It may throw IllegalArgumentException if it's non-lenient and has any out of range calendar field value. This behavior must be documented in Calendar.

###@###.### 2002-09-04

Comments
The resolution of https://bugs.openjdk.org/browse/JDK-4737887 included the fix to this issue.
20-04-2023

EVALUATION To be fixed as a part of calendar clean up in Tiger. ###@###.### 2002-09-04
04-09-2002