Rakhita Wickramatunge
Rakhita Wickramatunge

Reputation: 4503

Java PropertyChangeListner

if I send two null values as below.

pcl.firePropertyChange("name", null, null)

it will recognize this as a change and fires propertyChange(PropertyChangeEvent evt).

Is this a bug? Any suggestions ?

Upvotes: 0

Views: 51

Answers (1)

CKuck
CKuck

Reputation: 712

It's working as defined in the JavaDoc:

No event is fired if old and new are equal and non-null.

So no bug.

Upvotes: 1

Related Questions