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

CalendarBasedTimeoutTestCase failure when using French locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.1.0.CR2, 8.1.0.Final
    • 8.1.0.CR1
    • EJB
    • None

    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.

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            jmesnil1@redhat.com Jeff Mesnil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: