harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does
Date Wed, 26 Apr 2006 03:04:03 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-407?page=all ]

Mikhail Loenko reassigned HARMONY-407:
--------------------------------------

    Assign To: Mikhail Loenko

> 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


Mime
View raw message