JDK-4944736 : SPEC BUG: java.util.GregorianCalendar unclear standard
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2003-10-28
  • Updated: 2004-03-20
  • Resolved: 2003-11-28
Related Reports
Relates :  
Description

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] : 
api/java_util/GregorianCalendar/index.html#Ctor[GregorianCalendar0009]


Problem description
===================
The spec for designated class says nothing about the standard which it complies
to. In details behaviour of the methods: 
 getFirstDayOfWeek()
 getMinimalDaysInFirstWeek()

does depend of the current calendar's locale, does depends of the standard
where the expected resulting days are came from.

It seems that this class implicitly intended to comply ISO 8601 but this should
be specified.


JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

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

Comments
EVALUATION Which standard does this class apply to? ###@###.### 2003-11-07 GregorianCalendar doesn't comply with any standards. Therefore, the class document doesn't need to specify any standards. (Specifying the first day of week and minimal days in first week values doesn't support the ISO 8601 spec. It just affects the WEEK_OF_YEAR calculation, but the class doesn't support week-based year numbering. It doesn't support the ISO 8601 defined formatting. etc.) ###@###.### 2003-11-28
28-11-2003