[ 
https://issues.apache.org/jira/browse/MYFACES-3024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991028#comment-12991028
 ] 

Mark Struberg commented on MYFACES-3024:
----------------------------------------

oki fixed by first removing all dots and then parsing for 22250738585072012. In 
this case I return 0.0d

Since I only do all this stuff if the value.length is > 23 this should not 
affect the performance for normal use cases.

> MyFaces hangs when converting 2.2250738585072012e-308
> -----------------------------------------------------
>
>                 Key: MYFACES-3024
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3024
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Matthias Weßendorf
>            Priority: Critical
>
> I read
> http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/
> Nice! and it even works with JSF :-)
> Looking at the MyFaces (double) converter, I see "Double.valueOf()" 
> Now, I did a quick check, with Trinidad (disabled client-side validation) and 
> MyFaces (since Trinidad calls super.getAsObject()).
> Entering "2.2250738585072012e-308" into a field, that has a double converter 
> is keeping my JVM _really_ busy ! :)
> Sweet!

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to