0

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 ?

4
  • 2
    Why is it a bug? - you did fire a property change Commented Nov 30, 2011 at 11:19
  • if both old value and new value are equal it should not fire propertychange event. So in my case both old value and new value is null. Then why it should fire propertychange event ? Commented Nov 30, 2011 at 11:45
  • no worries found the trick. stuffthathappens.com/blog/2007/12/15/… Commented Nov 30, 2011 at 11:52
  • this is not a bug, this is the specified behaviour. It means something like: "Something has changed, please read the values directly from the bean" Commented Nov 30, 2011 at 12:01

1 Answer 1

1

It's working as defined in the JavaDoc:

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

So no bug.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.