Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-3112

[classlib][swing] j.s.undo.UndoManager.undoTo() and redoTo() throw CannotUndoException/CannotRedoException instead of ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      javax.swing.undo.UndoManager.undoTo(edit) and redoTo(edit) methods throw CannotUndoException or CannotRedoException correspondingly when the specified edit is not found.
      RI throws ArrayIndexOutOfBoundsException in these situations.

      Harmony implementation reaction looks more appropriate and adequate to the specification, so considering this a non-bug difference.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmz Vasily Zakharov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: