classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] java.beans.PropertyEditorSupport.setValue


From: Robert Schuster
Subject: [cp-patches] java.beans.PropertyEditorSupport.setValue
Date: Sun, 31 Oct 2004 15:30:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.3) Gecko/20040930

Here again :)

   - fixed bug #10799

cu
Robert
Index: ChangeLog
===================================================================
RCS file: /cvsroot/classpath/classpath/ChangeLog,v
retrieving revision 1.2720
diff -u -r1.2720 ChangeLog
--- ChangeLog   29 Oct 2004 16:33:45 -0000      1.2720
+++ ChangeLog   31 Oct 2004 14:19:56 -0000
@@ -1,3 +1,8 @@
+2004-10-31  Robert Schuster <address@hidden>
+
+       * java/beans/PropertyEditorSupport.java
+       (setValue): fixed bug #10799
+
 2004-10-29  Jerry Quinn  <address@hidden>
 
        * java/awt/image/ColorConvertOp.java: New class.
Index: java/beans/PropertyEditorSupport.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/beans/PropertyEditorSupport.java,v
retrieving revision 1.5
diff -u -r1.5 PropertyEditorSupport.java
--- java/beans/PropertyEditorSupport.java       22 Jan 2002 22:26:59 -0000      
1.5
+++ java/beans/PropertyEditorSupport.java       31 Oct 2004 14:19:56 -0000
@@ -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,11 @@
         ** @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);
-               }
+
+               // report the change without mentioning the old and the new 
values
+               // (according to specification in 
java.beans.PropertyChangeEvent)
+               pSupport.firePropertyChange(null, null, null);
        }
 
        /** Get the current value of the property.

reply via email to

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