You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/05/31 22:46:29 UTC
[jira] Created: (HARMONY-539) ArrayList.addAll(0, ...) index out of
bounds exception
ArrayList.addAll(0, ...) index out of bounds exception
------------------------------------------------------
Key: HARMONY-539
URL: http://issues.apache.org/jira/browse/HARMONY-539
Project: Harmony
Type: Bug
Components: Classlib
Reporter: Mark Hindess
Priority: Minor
The following code works on RI but causes an array index out of bounds exception on Harmony.
ArrayList alist = new ArrayList();
ArrayList blist = new ArrayList();
alist.add("a");
alist.add("b");
blist.add("c");
blist.add("d");
blist.remove(0);
blist.addAll(0, alist);
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-539) ArrayList.addAll(0, ...) index out
of bounds exception
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-539?page=all ]
Nathan Beyer reassigned HARMONY-539:
------------------------------------
Assign To: Nathan Beyer
> ArrayList.addAll(0, ...) index out of bounds exception
> ------------------------------------------------------
>
> Key: HARMONY-539
> URL: http://issues.apache.org/jira/browse/HARMONY-539
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Nathan Beyer
> Priority: Minor
> Attachments: ArrayListTest.java, jira_539_patch.txt
>
> The following code works on RI but causes an array index out of bounds exception on Harmony.
> ArrayList alist = new ArrayList();
> ArrayList blist = new ArrayList();
> alist.add("a");
> alist.add("b");
> blist.add("c");
> blist.add("d");
> blist.remove(0);
> blist.addAll(0, alist);
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-539) ArrayList.addAll(0, ...) index out
of bounds exception
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-539?page=comments#action_12415295 ]
Mark Hindess commented on HARMONY-539:
--------------------------------------
Looks good. Thanks for the fix and commit.
> ArrayList.addAll(0, ...) index out of bounds exception
> ------------------------------------------------------
>
> Key: HARMONY-539
> URL: http://issues.apache.org/jira/browse/HARMONY-539
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Nathan Beyer
> Priority: Minor
> Attachments: ArrayListTest.java, jira_539_patch.txt
>
> The following code works on RI but causes an array index out of bounds exception on Harmony.
> ArrayList alist = new ArrayList();
> ArrayList blist = new ArrayList();
> alist.add("a");
> alist.add("b");
> blist.add("c");
> blist.add("d");
> blist.remove(0);
> blist.addAll(0, alist);
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-539) ArrayList.addAll(0, ...) index out of
bounds exception
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-539?page=all ]
Nathan Beyer closed HARMONY-539:
--------------------------------
Verified by Mark.
> ArrayList.addAll(0, ...) index out of bounds exception
> ------------------------------------------------------
>
> Key: HARMONY-539
> URL: http://issues.apache.org/jira/browse/HARMONY-539
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Nathan Beyer
> Priority: Minor
> Attachments: ArrayListTest.java, jira_539_patch.txt
>
> The following code works on RI but causes an array index out of bounds exception on Harmony.
> ArrayList alist = new ArrayList();
> ArrayList blist = new ArrayList();
> alist.add("a");
> alist.add("b");
> blist.add("c");
> blist.add("d");
> blist.remove(0);
> blist.addAll(0, alist);
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-539) ArrayList.addAll(0, ...) index out
of bounds exception
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-539?page=all ]
Nathan Beyer resolved HARMONY-539:
----------------------------------
Resolution: Fixed
I applied a fix at r412625. Mark can you check this out and see if it completely fixes the bug for you.
> ArrayList.addAll(0, ...) index out of bounds exception
> ------------------------------------------------------
>
> Key: HARMONY-539
> URL: http://issues.apache.org/jira/browse/HARMONY-539
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Assignee: Nathan Beyer
> Priority: Minor
> Attachments: ArrayListTest.java, jira_539_patch.txt
>
> The following code works on RI but causes an array index out of bounds exception on Harmony.
> ArrayList alist = new ArrayList();
> ArrayList blist = new ArrayList();
> alist.add("a");
> alist.add("b");
> blist.add("c");
> blist.add("d");
> blist.remove(0);
> blist.addAll(0, alist);
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-539) ArrayList.addAll(0, ...) index out of
bounds exception
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-539?page=all ]
Nathan Beyer updated HARMONY-539:
---------------------------------
Attachment: jira_539_patch.txt
ArrayListTest.java
The patch should resolve this issue. The test case is a new unit test with the regression test.
> ArrayList.addAll(0, ...) index out of bounds exception
> ------------------------------------------------------
>
> Key: HARMONY-539
> URL: http://issues.apache.org/jira/browse/HARMONY-539
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Priority: Minor
> Attachments: ArrayListTest.java, jira_539_patch.txt
>
> The following code works on RI but causes an array index out of bounds exception on Harmony.
> ArrayList alist = new ArrayList();
> ArrayList blist = new ArrayList();
> alist.add("a");
> alist.add("b");
> blist.add("c");
> blist.add("d");
> blist.remove(0);
> blist.addAll(0, alist);
> java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira