harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2643) [classlib][swing] j.s.undo.UndoManager.setLimit throws ArrayIndexOutOfBoundsException
Date Tue, 12 Dec 2006 12:54:27 GMT
[classlib][swing] j.s.undo.UndoManager.setLimit throws ArrayIndexOutOfBoundsException

                 Key: HARMONY-2643
                 URL: http://issues.apache.org/jira/browse/HARMONY-2643
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexey A. Ivanov
            Priority: Minor

Harmony implementation of UndoManager throws ArrayIndexOutOfBoundsException where setLimit
is called with negative value.

======= code to reproduce =======
import javax.swing.undo.UndoManager;

public class Test {
    public static void main(String[] args) {
        UndoManager um = new UndoManager();
======= end of code =======

------- Harmony output -------
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range:
	at java.util.Vector.elementAt(Vector.java:326)
	at java.util.Vector.get(Vector.java:447)
	at javax.swing.undo.UndoManager.trimEdits(UndoManager.java:162)
	at javax.swing.undo.UndoManager.trimForLimit(UndoManager.java:245)
	at javax.swing.undo.UndoManager.setLimit(UndoManager.java:169)
	at Test.main(Test.java:6)
------- end of output -------

------- RI output -------
------- end of output -------

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


View raw message