Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3315

CalendarBasedTimeoutTestCase failure when using French locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.1.0.CR1
    • Fix Version/s: 8.1.0.CR2, 8.1.0.Final
    • Component/s: EJB
    • Labels:
      None
    • Environment:

      French Locale

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jmesnil Jeff Mesnil
                Reporter:
                jmesnil Jeff Mesnil
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: