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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: core-libs
    • Environment:
    • Subcomponent:
    • Introduced In Build:
      b100
    • Introduced In Version:
      8
    • CPU:
      generic
    • OS:
      generic

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: