Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4141515

Calling end() on an UndoManager must send die() to unreachable edits

XMLWordPrintable

    • swing1.1
    • generic
    • generic

      When you send end() to an UndoManager, it starts to behave like a normal CompoundEdit, with Undo and Redo triggering every edit in the list, not just the last one. This makes it important that edits at and beyond the insertion index are cleared out and killed off. Unfortunately, right now this doesn't happen until the next call to addEdit().

      This causes exceptions if:
      *nested undo session starts
      *changes happen
      *at least one undo happens
      *the temporary undomanager is end()ed
      *and it is told to undo, BEFORE any more changes are added

            hgajewsksunw Hania Gajewska (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: