harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetlana Samoilenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does
Date Tue, 25 Apr 2006 12:23:05 GMT
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


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