Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8023025

[JDK] Different values of new Calendar(new Locale("cs")).getFirstDayOfWeek(); for JRE (including profiles) and JDK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 8
    • core-libs
    • b100
    • 8
    • generic
    • generic

      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

            Unassigned Unassigned
            rmatafon Roman Matafonov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: