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

Wrong first day of week for Croatian locale

XMLWordPrintable

    • b96
    • x86
    • windows_2000, windows_xp

        FULL PRODUCT VERSION :
        Java version number: 1.4.2_07
        Java VM version: 1.4.2_07-b05
        tested also with
        java.version=1.5.0_05

        ADDITIONAL OS VERSION INFORMATION :
        os.version=5.2

        A DESCRIPTION OF THE PROBLEM :
        Calendar.getInstance().getFirstDayOfWeek() returns SUNDAY for HR_HR locale

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        set default locale to HR_HR
        get first day of week from Calendar.getInstance()

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        is returning SUNDAY but it should be MONDAY

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
         Locale.setDefault(new Locale("HR", "HR"));
        System.out.println("HR_HR = " + Calendar.getInstance().getFirstDayOfWeek());
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        no workaround

              jtusla Jiri Tusla (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: