classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpath] java.beans.PropertyChangeListener patch


From: Ian D. Stewart
Subject: [Classpath] java.beans.PropertyChangeListener patch
Date: Mon, 18 Sep 2000 00:11:53 -0400
User-agent: Mozilla/5.0 (X11; U; Linux 2.2.14 i586; en-US; m17) Gecko/20000807

According to Sun's API specification for Java2 (v. 1.2), java.beans.PropertyChangeListener is a sub-interface of java.util.EventListener. However, Classpath implements java.beans.PropertyChangeListener as a base interface.

The attached patch corrects this. As per Tom Tromey's request, I'm also attaching a diff to the ChangeLog documenting the change.


Regards,
Ian
Index: java/beans/PropertyChangeListener.java
===================================================================
RCS file: /cvs/classpath/java/beans/PropertyChangeListener.java,v
retrieving revision 1.3
diff -c -r1.3 PropertyChangeListener.java
*** java/beans/PropertyChangeListener.java      2000/03/15 23:08:14     1.3
--- java/beans/PropertyChangeListener.java      2000/09/17 16:56:57
***************
*** 27,32 ****
--- 27,34 ----
  
  package java.beans;
  
+ import java.util.EventListener;
+ 
  /**
   ** PropertyChangeListener allows a class to monitor
   ** properties of a Bean for changes.<P>
***************
*** 40,46 ****
   ** @see java.beans.PropertyChangeSupport
   **/
  
! public interface PropertyChangeListener {
        /** Fired after a Bean's property has changed.
         ** @param e the change (containing the old and new values)
         **/
--- 42,48 ----
   ** @see java.beans.PropertyChangeSupport
   **/
  
! public interface PropertyChangeListener extends EventListener {
        /** Fired after a Bean's property has changed.
         ** @param e the change (containing the old and new values)
         **/
Index: ChangeLog
===================================================================
RCS file: /cvs/classpath/ChangeLog,v
retrieving revision 1.23
diff -c -r1.23 ChangeLog
*** ChangeLog   2000/09/08 19:39:37     1.23
--- ChangeLog   2000/09/17 17:00:21
***************
*** 1,3 ****
--- 1,7 ----
+ 2000-09-17  Ian D. Stewart  <address@hidden>
+       * java/beans/PropertyChangeListener.java: made sub-interface of
+       java.util.EventListener
+ 
  2000-09-08  Warren Levy  <address@hidden>
  
        * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
***************
*** 38,43 ****
--- 42,48 ----
  
        * java/applet/*.java: Reformatted to match current coding style.
  
+ >>>>>>> 1.23
  2000-06-29  Warren Levy  <address@hidden>
  
        * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]