You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/08/03 06:44:16 UTC

[jira] Closed: (LANG-638) NumberUtils createNumber throws a StringIndexOutOfBoundsException when argument containing "e" and "E" is passed in

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

Henri Yandell closed LANG-638.
------------------------------

    Fix Version/s: 3.0
       Resolution: Fixed

svn ci -m "Making it so that NumberUtils.createNumber throws a NumberFormatException instead of a StringIndexOutOfBoundsException when Strings such as 1eE are passed in. Thanks to Ingo Heinrich's report and patch in LANG-638"
Sending        src/main/java/org/apache/commons/lang3/math/NumberUtils.java
Sending        src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
Transmitting file data ..
Committed revision 981736.


> NumberUtils createNumber throws a StringIndexOutOfBoundsException when argument containing "e" and "E" is passed in
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-638
>                 URL: https://issues.apache.org/jira/browse/LANG-638
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Ingo Heinrich
>             Fix For: 3.0
>
>         Attachments: NumberUtils.java.patch, NumberUtilsTest.java.patch
>
>
> NumberUtils createNumber throws a StringIndexOutOfBoundsException instead of NumberFormatException when a String containing both possible exponent indicators is passed in.
> One example of such a String is "1eE".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.