You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ingo Heinrich (JIRA)" <ji...@apache.org> on 2010/08/02 13:01:22 UTC
[jira] Created: (LANG-638) NumberUtils createNumber throws a
StringIndexOutOfBoundsException when argument containing "e" and "E" is
passed in
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
Attachments: NumberUtils.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.
[jira] Updated: (LANG-638) NumberUtils createNumber throws a
StringIndexOutOfBoundsException when argument containing "e" and "E" is
passed in
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell updated LANG-638:
-------------------------------
Component/s: lang.math.*
> 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
> Components: lang.math.*
> 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.
[jira] Closed: (LANG-638) NumberUtils createNumber throws a
StringIndexOutOfBoundsException when argument containing "e" and "E" is
passed in
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (LANG-638) NumberUtils createNumber throws a
StringIndexOutOfBoundsException when argument containing "e" and "E" is
passed in
Posted by "Ingo Heinrich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ingo Heinrich updated LANG-638:
-------------------------------
Attachment: NumberUtilsTest.java.patch
Patch to NumberUtilsTest.java for bug reproduction.
> 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
> 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.
[jira] Updated: (LANG-638) NumberUtils createNumber throws a
StringIndexOutOfBoundsException when argument containing "e" and "E" is
passed in
Posted by "Ingo Heinrich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LANG-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ingo Heinrich updated LANG-638:
-------------------------------
Attachment: NumberUtils.java.patch
Patch proposal fixing the bug.
> 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
> Attachments: NumberUtils.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.