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

Cannot override mouse listener in BasicMenuUI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • 1.0.2
    • client-libs
    • None
    • 1.2beta4
    • generic
    • generic
    • Not verified

      BasicMenuUI.MouseListener should be renamed to something else. Naming the inner class MouseListener hides java.awt.event.MouseListener. Uninintentional consequesnces:

      - protected mouseListener field is of type BasicMenuUI.MouseListener, not java.awt.event.MouseListener
      - protected method createMouseListener is not overridable b/c the return type is BasicMenuUI.MouseListener (which is neither public nor protected)

            gsaab Georges Saab
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: