-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
7u76, 8
-
generic
-
generic
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 ----------
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 ----------
- relates to
-
JDK-8138865 Caledndar getFirstDayOfWeek returns incorrect value for en_NZ and en_AU locales
- Closed