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

In Bulgaria (and many EU countries) the first day of week is Monday but not Sunday

XMLWordPrintable

      FULL PRODUCT VERSION :

      java version "1.7.0_71"
      Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

      AND also

      java version "1.8.0_73"
      Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
      Java HotSpot(TM) Client VM (build 25.73-b02, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 8.1

      A DESCRIPTION OF THE PROBLEM :
      In Bulgaria (many EU )countries first day of week is Monday but not Sunday.

      According to the "https://en.wikipedia.org/wiki/Week" the first day is Monday for every EU countries, so it can be used for basis to check if Monday is default for the EU countries in Java. It seems that the bug is also related to http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4527203

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create calendar with Bulgarian locale and compare if the first day of the week is Monday.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      @Test
      public void testFirstDayOfTheWeekBG() {
        final Calendar cal = Calendar.getInstance(new Locale("bg", "BG"));
        System.out.println(cal.getFirstDayOfWeek());
        assertEquals(Calendar.MONDAY, cal.getFirstDayOfWeek());
      }
      ---------- END SOURCE ----------

            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: