-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
None
-
Affects Version/s: 6
-
Component/s: client-libs
-
sparc
-
solaris_10
FULL PRODUCT VERSION :
1.4.2, 1.5.0, 1.60
ADDITIONAL OS VERSION INFORMATION :
JDK issue
A DESCRIPTION OF THE PROBLEM :
The method firePropertyChange() for Objects in PropertyChangeSupport.java does not properly check for if oldValue == newValue prior to firing. In the case that oldValue and newValue are BOTH null the event should not be fired.
public void firePropertyChange(String propertyName,
Object oldValue, Object newValue) {
if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
return;
}
firePropertyChange(new PropertyChangeEvent(source, propertyName,
oldValue, newValue));
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expect an additional check,
if ( oldValue == newValue ) {
return;
}
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2005-06-28 17:48:38 GMT
1.4.2, 1.5.0, 1.60
ADDITIONAL OS VERSION INFORMATION :
JDK issue
A DESCRIPTION OF THE PROBLEM :
The method firePropertyChange() for Objects in PropertyChangeSupport.java does not properly check for if oldValue == newValue prior to firing. In the case that oldValue and newValue are BOTH null the event should not be fired.
public void firePropertyChange(String propertyName,
Object oldValue, Object newValue) {
if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
return;
}
firePropertyChange(new PropertyChangeEvent(source, propertyName,
oldValue, newValue));
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expect an additional check,
if ( oldValue == newValue ) {
return;
}
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2005-06-28 17:48:38 GMT
- relates to
-
JDK-6967462 AbstractAction firePropertyChange fires when oldValue == newValue == null
-
- Closed
-