You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Svetlana Samoilenko (JIRA)" <ji...@apache.org> on 2006/04/25 14:31:05 UTC
[jira] Updated: (HARMONY-407)
java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent
evt) does not throw NPE when RI does
[ http://issues.apache.org/jira/browse/HARMONY-407?page=all ]
Svetlana Samoilenko updated HARMONY-407:
----------------------------------------
Attachment: PropertyChangeListenerProxy.diffs
PropertyChangeListenerProxyTest.java
patch and unit test
> java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does
> --------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-407
> URL: http://issues.apache.org/jira/browse/HARMONY-407
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Svetlana Samoilenko
> Priority: Minor
> Attachments: PropertyChangeListenerProxy.diffs, PropertyChangeListenerProxyTest.java
>
> Harmony does not throw NPE when attempting to change a property of a proxy whose listener is null
> while RI does.
> Specification doesn't say anything about NullPointerException throwing.
>
> Code for reproduce:
> import java.beans.PropertyChangeListenerProxy;
>
> public class test {
> public static void main(String[] args) {
> PropertyChangeListenerProxy proxy=new PropertyChangeListenerProxy("harmony", null);
> proxy.propertyChange(null);
> System.out.println("PASS");
> }
> }
>
> Output on Harmony:
> PASS
>
> Output on BEA 1.5:
> java.lang.NullPointerException
> at java.beans.PropertyChangeListenerProxy.propertyChange(Ljava.beans.PropertyChangeEvent;)V(PropertyChangeListenerProy.java:51)
> at test.main([Ljava.lang.String;)V(test.java:6)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira