Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1210

org.apache.myfaces.trinidad.convert.DateTimeConverter uses a Set which may imply that the locale pattern is not the 1st to be used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.10-core, 1.0.10-core
    • Components
    • None

    Description

      org.apache.myfaces.trinidad.convert.DateTimeConverter._doLenientParse() uses a Set (HashSet). Since Set (and HashSet) do not make any guarantee about the order of the elements, it is possible that the locale specified pattern (variable pattern) is not the first to be tried.

      It might also be useful to have an order among the other patterns that make up the Sets "patterns" and "lenientPatterns".

      In order to do so I suggest we make all the above Lists.

      Attachments

        1. trunk12.patch
          4 kB
          Anita Anandan
        2. trunk.patch
          4 kB
          Anita Anandan

        Activity

          People

            matzew Matthias Wessendorf
            anitaanandan Anita Anandan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: