JDK-8023025 : [JDK] Different values of new Calendar(new Locale("cs")).getFirstDayOfWeek(); for JRE (including profiles) and JDK
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2013-08-14
  • Updated: 2013-08-14
  • Resolved: 2013-08-14
Related Reports
Relates :  
Description
To reproduce:
go to one of boards from environment
wget http://jre.us.oracle.com/java/re/jdk/8/promoted/ea/b101/ws/jdk/test/closed/java/util/Calendar/Bug4302966.java
mount aurora-ds.us.oracle.com:/data /mnt/
/mnt/export/aurora/sca/embedded/builds/8/b101/jdk/linux-armhf/bin/javac Bug4302966.java
root@emb-spb-ti-panda-hf-1:/export/users/rmatafon# /mnt/export/aurora/sca/embedded/builds/8/b101/jdk/linux-armhf/bin/java Bug4302966
root@emb-spb-ti-panda-hf-1:/export/users/rmatafon# /mnt/export/aurora/sca/embedded/builds/8/b101/jre/linux-armhf/bin/java Bug4302966
Exception in thread "main" java.lang.RuntimeException
	at Bug4302966.main(Bug4302966.java:17)

I also had tried to add line 
   System.out.println(firstDayOfWeek + ", MONDAY = " + Calendar.MONDAY);
and got the next:

root@emb-spb-ti-panda-hf-1:/export/users/rmatafon# /mnt/export/aurora/sca/embedded/builds/8/b101/jdk/linux-armhf/bin/java Bug4302966
2, MONDAY = 2
root@emb-spb-ti-panda-hf-1:/export/users/rmatafon# /mnt/export/aurora/sca/embedded/builds/8/b101/jre/linux-armhf/bin/java Bug4302966
1, MONDAY = 2
Exception in thread "main" java.lang.RuntimeException
	at Bug4302966.main(Bug4302966.java:17)

http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=267169.JAVASE_EMBEDDED_PROMOTION_TESTCYCLE_8_ALL-1020
RULE closed/java/util/Calendar/Bug4302966.java Exception java.lang.RuntimeException
Comments
See docs.. for more detailed answer. http://docs.oracle.com/javase/7/docs/technotes/guides/extensions/extensions.html Installed optional packages Installed optional packages are JAR files in the following directories: lib/ext (in the JRE) jre/lib/ext (in the JDK) Note in the JDK's I ran from via /java/re/jdk/8/latest/embedded/binaries/linux*hflt/jre/lib/ext has the files you are talking about. Same goes for the the /java/re/jdk/8/latest/binaries/linux*hflt/jre/lib/ext Both contain files.. The JRE's do not need them as they are optional packages.. This is not a bug
14-08-2013

This is due to localedata.jar is absent in $JRE_HOME/lib/ext/ Not sure if this is still bug. Just a thought. Is that okay that there is no any warning / error due to Locale.setDefault(new Locale("zh", "HK")); unable to work?
14-08-2013

I ran this test on x86 using latest bits.. I get 2, MONDAY = 2 This is not an embedded bug. Same outcome occurs on X86 with latest SE bits..
14-08-2013

Is this an issue for the 'standard' platforms as well? Need to try 'std' JRE and JDK on Linux x86.
14-08-2013