Uploaded image for project: 'XmlSchema'
  1. XmlSchema
  2. XMLSCHEMA-22

enum parsing is locale specific

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • XmlSchema 2.0
    • 2.0.2
    • None

    Description

      The EnumUtils class used to parse the enums does:

          
          static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name) {
              return Enum.valueOf(enumClass, name.toUpperCase());
          }
      

      but the toUpperCase call there is locale specific and could result in not being able to parse the enums.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            dkulp Daniel Kulp
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: