You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/12/11 16:56:22 UTC
[jira] Updated: (HARMONY-2612) [classlib][swing]
j.s.undo.UndoManager.redoTo doesn't throw ArrayIndexOutOfBoundsException
[ 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:
success
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 case.
--
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