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:23:05 UTC

[jira] Created: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does

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


[jira] Updated: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does

Posted by "Svetlana Samoilenko (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Resolved: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Commented: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does

Posted by "Svetlana Samoilenko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-407?page=comments#action_12376438 ] 

Svetlana Samoilenko commented on HARMONY-407:
---------------------------------------------

Mikhail,
thank you, bug is not reproducible with latest sources.

> 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


[jira] Assigned: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Closed: (HARMONY-407) java.beans.PropertyChangeListenerProxy.propertyChange(PropertyChangeEvent evt) does not throw NPE when RI does

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-407?page=all ]
     
Mikhail Loenko closed HARMONY-407:
----------------------------------


verified by Svetlana

> 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