You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/01/16 18:36:27 UTC
[jira] Commented: (HARMONY-2612) [classlib][swing]
j.s.undo.UndoManager.redoTo doesn't throw ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/HARMONY-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465225 ]
Vasily Zakharov commented on HARMONY-2612:
------------------------------------------
I agree, looks like this is a non-bug diff, and throwing a CannotUndoException/CannotRedoException instead of ArrayIndexOutOfBoundsException is reasonable.
However, throwing an exception is sure necessary in both undoTo() and redoTo() methods.
I'll provide a patch soon.
> [classlib][swing] j.s.undo.UndoManager.redoTo doesn't throw ArrayIndexOutOfBoundsException
> ------------------------------------------------------------------------------------------
>
> Key: HARMONY-2612
> URL: https://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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira