ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (XMLSCHEMA-22) enum parsing is locale specific
Date Mon, 02 Apr 2012 15:49:22 GMT

     [ https://issues.apache.org/jira/browse/XMLSCHEMA-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved XMLSCHEMA-22.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.2
    
> enum parsing is locale specific
> -------------------------------
>
>                 Key: XMLSCHEMA-22
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-22
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 2.0
>            Reporter: Daniel Kulp
>            Assignee: Daniel Kulp
>             Fix For: 2.0.2
>
>
> The EnumUtils class used to parse the enums does:
> {code}    
>     static <T extends Enum<T>> T valueOf(Class<T> enumClass, String
name) {
>         return Enum.valueOf(enumClass, name.toUpperCase());
>     }
> {code}
> but the toUpperCase call there is locale specific and could result in not being able
to parse the enums.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message