-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b43
-
sparc
-
solaris_2.6
Name: sdR10048 Date: 10/28/2003
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b25"
JCK : 1.5
Platform[s] : Solaris
switch/Mode :
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] :
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
public int getMinimum(int field)
Returns minimum value for the given field. e.g. for Gregorian DAY_OF_MONTH, 1 Please see Calendar.getMinimum for descriptions on parameters and the return value.
Specified by:
getMinimum in class Calendar
Parameters:
field - the given time field.
Returns:
the minimum value for the given time field.
...
---------- end-of-excerpt ---------------
Problem description
===================
The spec for methods
getMinimum(int field)
getMaximum(int field)
getGreatestMinimum(int field)
getLeastMaximum(int field)
getActualMinimum(int field)
getActualMaximum(int field)
does not specify the expected return values for different 'field' parameters.
For example for ZONE_OFFSET.
Currently spec does refer to Calendar specification but there is no expected
information either
Please see http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method
for more information regarding this issue.
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b25"
JCK : 1.5
Platform[s] : Solaris
switch/Mode :
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] :
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
public int getMinimum(int field)
Returns minimum value for the given field. e.g. for Gregorian DAY_OF_MONTH, 1 Please see Calendar.getMinimum for descriptions on parameters and the return value.
Specified by:
getMinimum in class Calendar
Parameters:
field - the given time field.
Returns:
the minimum value for the given time field.
...
---------- end-of-excerpt ---------------
Problem description
===================
The spec for methods
getMinimum(int field)
getMaximum(int field)
getGreatestMinimum(int field)
getLeastMaximum(int field)
getActualMinimum(int field)
getActualMaximum(int field)
does not specify the expected return values for different 'field' parameters.
For example for ZONE_OFFSET.
Currently spec does refer to Calendar specification but there is no expected
information either
Please see http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method
for more information regarding this issue.
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================
- duplicates
-
JDK-4958988 Javadoc for GregorianCalendar doesn't specifybehavior of the getXXX methods wit
-
- Closed
-
- relates to
-
JDK-4359204 GregorianCalendar.get(Calendar.DAY_OF_YEAR) is inconsistant for year 1582
-
- Resolved
-
-
JDK-5006864 Define the minimum value of DAY_OF_WEEK_IN_MONTH as 1
-
- Resolved
-
-
JDK-4984320 Test testbase_vm/src/jit/symcjit/4139729/Calendar/CalendarTest failed
-
- Closed
-