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] Updated: (HARMONY-2612) [classlib][swing] j.s.undo.UndoManager.redoTo doesn't throw ArrayIndexOutOfBoundsException
Date Mon, 11 Dec 2006 15:56:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2612?page=all ]

Alexey A. Ivanov updated HARMONY-2612:

    Attachment: HTest2612.java

A sample application which demonstrates the problem.

Harmony output:

RI output:
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
	at java.util.Vector.elementAt(Vector.java:432)
	at javax.swing.undo.UndoManager.redoTo(UndoManager.java:221)
	at HTest2612$UM.redoTo(HTest2612.java:22)
	at HTest2612.main(HTest2612.java:34)


Maybe it makes sense to throw CannotRedoException with an explanation why. If yes, undoTo()
should also be modified.

> [classlib][swing] j.s.undo.UndoManager.redoTo doesn't throw ArrayIndexOutOfBoundsException
> ------------------------------------------------------------------------------------------
>                 Key: HARMONY-2612
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2612
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>         Attachments: HTest2612.java
> javax.swing.undo.UndoManager.redoTo(edit) does not throw ArrayIndexOutOfBoundsException
where edit is not found in the list of UndoableEdits, whereas RI throws the exception in this

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