[jboss-jira] [JBoss JIRA] (WFLY-3315) CalendarBasedTimeoutTestCase failure when using French locale
Jeff Mesnil (JIRA)
issues at jboss.org
Mon May 5 09:56:56 EDT 2014
Jeff Mesnil created WFLY-3315:
---------------------------------
Summary: CalendarBasedTimeoutTestCase failure when using French locale
Key: WFLY-3315
URL: https://issues.jboss.org/browse/WFLY-3315
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: EJB
Affects Versions: 8.1.0.CR1
Environment: French Locale
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
CalendarBasedTimeoutTestCase fails when running on my laptop using the French locale.
French and English locales differs in the value of the 1st day of week:
cal = new GregorianCalendar(Locale.ENGLISH);
System.out.println("cal = " + cal.getFirstDayOfWeek()); => 1 // SUNDAY
cal = new GregorianCalendar(Locale.FRANCE);
System.out.println("cal = " + cal.getFirstDayOfWeek()); => 2 // MONDAY
The code in CalendarBasedTimeout set the 1st day of week to SUNDAY for the 1st timeout but does not set it in the truncate() method which makes comparing the date and its truncated copy bogus.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jboss-jira
mailing list