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

UndoManager.indexOfNextAdd should be protected, not package local.

XMLWordPrintable

    • Fix Understood
    • generic
    • generic



      Name: diC59631 Date: 08/06/98


      [This is in swing1.1beta, which isn't a choice on the form.]

      It is almost impossible to extend com.sun.java.swing.undo.UndoManager and override a particular method because indexOfNextAdd is protected and has no accessors.

      In this particular case, I'm trying to override UndoManager.addEdit(UndoableEdit), but cannot manage the undo queue because I cannot get to the indexOfNextAdd member. Other methods have the same problem.

      If it were simply changed to protected access, this problem would be solved.
      (Review ID: 36511)
      ======================================================================

            peterz Peter Zhelezniakov
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: