You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2010/06/15 12:41:25 UTC
[jira] Resolved: (HARMONY-6502) [classlib][luni] String.substring
does not throw StringIndexOutOfBoundsException with index
[ https://issues.apache.org/jira/browse/HARMONY-6502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison resolved HARMONY-6502.
----------------------------------
Assignee: Tim Ellison
Fix Version/s: 5.0M15
Resolution: Fixed
Thanks Dinuk,
Patch applied to LUNI module at repo revision r954798.
Please check it was applied as you expected.
> [classlib][luni] String.substring does not throw StringIndexOutOfBoundsException with index
> -------------------------------------------------------------------------------------------
>
> Key: HARMONY-6502
> URL: https://issues.apache.org/jira/browse/HARMONY-6502
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Dinuk Weerasinghe
> Assignee: Tim Ellison
> Priority: Minor
> Fix For: 5.0M15
>
> Attachments: 6502.patch
>
>
> Invocation of String.substring with invalid arguments does not provide the invalid index information
> e.g:
> - "HelloWorld".substring(4,1) on RI gives: java.lang.StringIndexOutOfBoundsException: String index out of range: -3
> - "HelloWorld".substring(4,1) on Harmony gives: java.lang.StringIndexOutOfBoundsException with no message, which is less useful
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.