-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
beta2
-
sparc
-
solaris_2.6
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2139543 | 1.4.2_13 | Sean Coffey | P2 | Resolved | Fixed | b02 |
Name: sdR10048 Date: 11/26/2003
This bug is shadow of 4944756 (which was
closed as dup of fixed bug 4518811).
Please *do not close* this one linke that - it is not fixed yet.
Mini test still fails.
And GregorianCalendar0009 still fails too.
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b29"
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
===================
getMinimalDaysInFirstWeek returns wrong value for UK and France locales.
According to ISO 8601 the valid numbers are 4, 4 accordingly.
See some info at http://www.pjh2.de/datetime/weeknumber/wnd.php.
Minimized test:
===============
------- J.java -------
import java.util.*;
public class J {
public static void main(String[] args) {
Locale locales[] = {Locale.UK, Locale.FRANCE};
GregorianCalendar cal = null;
for (int i=0; i<locales.length; i++) {
cal = new GregorianCalendar(locales[i]);
System.out.println(locales[i] + " : " +
cal.getMinimalDaysInFirstWeek());
}
}
}
------- end-of-J.java -------
Minimized test output:
======================
] (happy) ~/tmp
] java -showversion J
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b29)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b29, mixed mode)
en_GB : 1
fr_FR : 1
] (happy) ~/tmp
] locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================
This bug is shadow of 4944756 (which was
closed as dup of fixed bug 4518811).
Please *do not close* this one linke that - it is not fixed yet.
Mini test still fails.
And GregorianCalendar0009 still fails too.
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b29"
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
===================
getMinimalDaysInFirstWeek returns wrong value for UK and France locales.
According to ISO 8601 the valid numbers are 4, 4 accordingly.
See some info at http://www.pjh2.de/datetime/weeknumber/wnd.php.
Minimized test:
===============
------- J.java -------
import java.util.*;
public class J {
public static void main(String[] args) {
Locale locales[] = {Locale.UK, Locale.FRANCE};
GregorianCalendar cal = null;
for (int i=0; i<locales.length; i++) {
cal = new GregorianCalendar(locales[i]);
System.out.println(locales[i] + " : " +
cal.getMinimalDaysInFirstWeek());
}
}
}
------- end-of-J.java -------
Minimized test output:
======================
] (happy) ~/tmp
] java -showversion J
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b29)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b29, mixed mode)
en_GB : 1
fr_FR : 1
] (happy) ~/tmp
] locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
======================================================================
- backported by
-
JDK-2139543 REGRESSION: UK and France: bad minimal days in first week (2)
- Resolved
- relates to
-
JDK-4518811 Wrong WEEK_OF_YEAR in Locale de
- Closed