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

Generify java.util.EventListenerProxy

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b22
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Not verified

      Description

      A DESCRIPTION OF THE REQUEST :
      The class can easily be made generic, and code that uses it would benefit from the polymorphism.

      I am working on fixes for several bugs in java.beans.PropertyChangeSupport and VetoableChangeSupport. These use PropertyChangeListenerProxy and VetoableChangeListenerProxy which extend EventListenerProxy. The usage in the support classes is an example of the utility of the proposed generification.

      Since I am working directly with the class and 2 subclasses (for these fixes), I would gladly implement and contribute the generic implementation. In fact, I am working the fixes on the assumption that this will go through since it is much safer to code.

      JUSTIFICATION :
      The class is abstract and intended to be greatly augmented by subclasses, and it proxies another type. The parametric polymorphism is of use to the subclass.

      There are no backward-compatability issues that I know of with such a change.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              malenkov Sergey Malenkov (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: