commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-638) NumberUtils createNumber throws a StringIndexOutOfBoundsException when argument containing "e" and "E" is passed in
Date Tue, 03 Aug 2010 04:44:16 GMT

     [ 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.


Mime
View raw message