You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Cornwall (JIRA)" <ji...@apache.org> on 2008/09/03 23:13:44 UTC
[jira] Created: (HARMONY-5968) [pack200][classlib]
NumberFormatException in NewAttributeBands.readNumber()
[pack200][classlib] NumberFormatException in NewAttributeBands.readNumber()
---------------------------------------------------------------------------
Key: HARMONY-5968
URL: https://issues.apache.org/jira/browse/HARMONY-5968
Project: Harmony
Issue Type: Bug
Components: Classlib
Affects Versions: 5.0M7
Environment: All Pack200 HEAD
Reporter: Andrew Cornwall
I have a test case which causes a NumberFormatException when doing NewAttributeBands.readNumber(). It appears that digits is "" (an empty String) so the return line:
return Integer.parseInt((negative ? "-" : "") + new String(digits))
is doing Integer.parseInt(""), which causes the exception.
Unfortunately, the test case is proprietary code, so I've sent it to Sian via email.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-5968) [pack200][classlib]
NumberFormatException in NewAttributeBands.readNumber()
Posted by "Andrew Cornwall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Cornwall closed HARMONY-5968.
------------------------------------
Issue is resolved as expected. Thanks!
> [pack200][classlib] NumberFormatException in NewAttributeBands.readNumber()
> ---------------------------------------------------------------------------
>
> Key: HARMONY-5968
> URL: https://issues.apache.org/jira/browse/HARMONY-5968
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M7
> Environment: All Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Fix For: 5.0M8
>
>
> I have a test case which causes a NumberFormatException when doing NewAttributeBands.readNumber(). It appears that digits is "" (an empty String) so the return line:
> return Integer.parseInt((negative ? "-" : "") + new String(digits))
> is doing Integer.parseInt(""), which causes the exception.
> Unfortunately, the test case is proprietary code, so I've sent it to Sian via email.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-5968) [pack200][classlib]
NumberFormatException in NewAttributeBands.readNumber()
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sian January reassigned HARMONY-5968:
-------------------------------------
Assignee: Sian January
> [pack200][classlib] NumberFormatException in NewAttributeBands.readNumber()
> ---------------------------------------------------------------------------
>
> Key: HARMONY-5968
> URL: https://issues.apache.org/jira/browse/HARMONY-5968
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M7
> Environment: All Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
>
> I have a test case which causes a NumberFormatException when doing NewAttributeBands.readNumber(). It appears that digits is "" (an empty String) so the return line:
> return Integer.parseInt((negative ? "-" : "") + new String(digits))
> is doing Integer.parseInt(""), which causes the exception.
> Unfortunately, the test case is proprietary code, so I've sent it to Sian via email.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-5968) [pack200][classlib]
NumberFormatException in NewAttributeBands.readNumber()
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sian January resolved HARMONY-5968.
-----------------------------------
Resolution: Fixed
Fix Version/s: 5.0M8
Fixed at r692141. Please check that this fully resolves your issue.
> [pack200][classlib] NumberFormatException in NewAttributeBands.readNumber()
> ---------------------------------------------------------------------------
>
> Key: HARMONY-5968
> URL: https://issues.apache.org/jira/browse/HARMONY-5968
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M7
> Environment: All Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Fix For: 5.0M8
>
>
> I have a test case which causes a NumberFormatException when doing NewAttributeBands.readNumber(). It appears that digits is "" (an empty String) so the return line:
> return Integer.parseInt((negative ? "-" : "") + new String(digits))
> is doing Integer.parseInt(""), which causes the exception.
> Unfortunately, the test case is proprietary code, so I've sent it to Sian via email.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-5968) [pack200][classlib]
NumberFormatException in NewAttributeBands.readNumber()
Posted by "Andrew Cornwall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628155#action_12628155 ]
Andrew Cornwall commented on HARMONY-5968:
------------------------------------------
Even when unpacked using Sun's unpack and repacked with -E1, the error still exists (in the same place).
Looks like the string it's parsing is:
TB(7)[RCH](8,9)[PH]()[]
> [pack200][classlib] NumberFormatException in NewAttributeBands.readNumber()
> ---------------------------------------------------------------------------
>
> Key: HARMONY-5968
> URL: https://issues.apache.org/jira/browse/HARMONY-5968
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M7
> Environment: All Pack200 HEAD
> Reporter: Andrew Cornwall
>
> I have a test case which causes a NumberFormatException when doing NewAttributeBands.readNumber(). It appears that digits is "" (an empty String) so the return line:
> return Integer.parseInt((negative ? "-" : "") + new String(digits))
> is doing Integer.parseInt(""), which causes the exception.
> Unfortunately, the test case is proprietary code, so I've sent it to Sian via email.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.