Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4796

DatePickerTest fails because of java inconsistensy on localizing March german shortname Mrz vs Mär

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.2.0
    • Component/s: wicket-datetime
    • Labels:
      None
    • Environment:
      java 8

      Description

      The Oracle java7 and older return Mrz as german march short name.
      The Oracle java8 seems to have switched to the official (see http://de.wikipedia.org/wiki/Vorlage:Monat_Name-Nummer ) three letter short name Mär.

      Some googling showed that IBM java has used the offical short name at least since 2008.

      I propose as a fix that the non-english test language is changed to something other than Locale.GERMAN in DatePickerTest method myTestExecution. For example Locale.ITALIAN, which has had consistent localization in Java world. Plus of course the reference data in DatesPage1_ExpectedResult.html needs to be regenerated.

        Activity

        Hide
        svenmeier Sven Meier added a comment -

        Fixed, thanks!

        Show
        svenmeier Sven Meier added a comment - Fixed, thanks!
        Hide
        mikko Mikko Tiihonen added a comment -

        Patch to switch test to use Italian instead of German

        Show
        mikko Mikko Tiihonen added a comment - Patch to switch test to use Italian instead of German

          People

          • Assignee:
            svenmeier Sven Meier
            Reporter:
            mikko Mikko Tiihonen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development