[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: fixes for PropertyEditorSupport

Kaffe CVS cvs-commits at kaffe.org
Mon Nov 1 02:17:39 PST 2004


PatchSet 5393 
Date: 2004/11/01 10:13:19
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: fixes for PropertyEditorSupport


2004-11-01  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/java/beans/PropertyEditorSupport.java:
        Resynced with GNU Classpath.

        2004-10-31  Robert Schuster <thebohemian at gmx.net>

        Fixes bug #10799
        * java/beans/PropertyEditorSupport.java
        (setValue): Fire property change event

Members: 
	ChangeLog:1.2943->1.2944 
	libraries/javalib/java/beans/PropertyEditorSupport.java:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2943 kaffe/ChangeLog:1.2944
--- kaffe/ChangeLog:1.2943	Mon Nov  1 09:12:22 2004
+++ kaffe/ChangeLog	Mon Nov  1 10:13:19 2004
@@ -1,5 +1,16 @@
 2004-11-01  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/java/beans/PropertyEditorSupport.java:
+        Resynced with GNU Classpath.
+
+	2004-10-31  Robert Schuster <thebohemian at gmx.net>
+
+        Fixes bug #10799
+        * java/beans/PropertyEditorSupport.java
+        (setValue): Fire property change event
+
+2004-11-01  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/java/util/Calendar.java:
 	Resynced with GNU Classpath.
 
Index: kaffe/libraries/javalib/java/beans/PropertyEditorSupport.java
diff -u kaffe/libraries/javalib/java/beans/PropertyEditorSupport.java:1.3 kaffe/libraries/javalib/java/beans/PropertyEditorSupport.java:1.4
--- kaffe/libraries/javalib/java/beans/PropertyEditorSupport.java:1.3	Wed Oct 22 10:34:52 2003
+++ kaffe/libraries/javalib/java/beans/PropertyEditorSupport.java	Mon Nov  1 10:13:22 2004
@@ -1,5 +1,5 @@
 /* java.beans.PropertyEditorSupport
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -50,8 +50,9 @@
  ** the various methods do.
  **
  ** @author John Keiser
+ ** @author Robert Schuster
  ** @since JDK1.1
- ** @version 1.1.0, 29 Jul 1998
+ ** @status updated to 1.4
  **/
 
 public class PropertyEditorSupport implements PropertyEditor {
@@ -87,11 +88,12 @@
 	 ** @param val the new value for the property.
 	 **/
 	public void setValue(Object val) {
-		Object oldVal = val;
 		this.val = val;
-		if(!oldVal.equals(val)) {
-			pSupport.firePropertyChange(null,oldVal,val);
-		}
+
+		// specification in java.beans.PropertyChangeEvent says 
+		// that without a property name (first argument) the
+		// new and the old value should always be null
+		pSupport.firePropertyChange(null, null, null);
 	}
 
 	/** Get the current value of the property.




More information about the kaffe mailing list