You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/04/26 05:51:03 UTC

[jira] Resolved: (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 ]
     
Mikhail Loenko resolved HARMONY-407:
------------------------------------

    Resolution: Fixed

fixed in revision 397072
The test was slightly modified
Svetlana, please verify that it fully resolves the problem

> 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
>     Assignee: Mikhail Loenko
>     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