[richfaces-issues] [JBoss JIRA] Commented: (RF-4142) GradientType.valueOf(string.toUpperCase()) Localization problem

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Mon Aug 11 08:45:51 EDT 2008


    [ https://jira.jboss.org/jira/browse/RF-4142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12424408#action_12424408 ] 

Nick Belaevski commented on RF-4142:
------------------------------------

Add "-Duser.language=tr -Duser.region=TR" to reproduce the issue

> GradientType.valueOf(string.toUpperCase()) Localization problem
> ---------------------------------------------------------------
>
>                 Key: RF-4142
>                 URL: https://jira.jboss.org/jira/browse/RF-4142
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Mustafa Dasgin
>
> If your defaut local language and country setting is "tr_TR", GradientType.valueOf(string.toUpperCase()) statement converts "plain" to "PLA?N" (upper case "i" with dot). And gets the below exception:
> SEVERE: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.IllegalArgumentException: No enum const class org.richfaces.renderkit.html.images.GradientType.PLA?N
> at java.lang.Enum.valueOf(Unknown Source)
> at org.richfaces.renderkit.html.images.GradientType.valueOf(GradientType.java:14)
> at org.richfaces.renderkit.html.images.GradientType.getByParameter(GradientType.java:99)
> at org.richfaces.renderkit.html.BaseGradient.saveData(BaseGradient.java:247) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list