JDK-4296226 : incomplete documentation for Calendar.setLenient(boolean)
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5
  • CPU: sparc
  • Submitted: 1999-12-02
  • Updated: 1999-12-03
  • Resolved: 1999-12-03
Related Reports
Duplicate :  
Description

Name: bkC97677			Date: 12/02/99



JavaDoc for java.util.Calendar says:
"a lenient GregorianCalendar interprets MONTH
== JANUARY, DAY_OF_MONTH == 32 as February 1.
A non-lenient GregorianCalendar throws an exception 
when given out-of-range field settings", 
but says nothing about those out-of-range field settings.

(From JavaDoc may not be deduced, which method should be used
to determine if actual field is out-of-range.)

======================================================================