You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitry M. Kononov (JIRA)" <ji...@apache.org> on 2006/04/19 11:07:17 UTC

[jira] Commented: (HARMONY-373) beans: Harmony does not throw NullPointerException in several cases while RI does.

    [ http://issues.apache.org/jira/browse/HARMONY-373?page=comments#action_12375075 ] 

Dmitry M. Kononov commented on HARMONY-373:
-------------------------------------------

Thanks Mikhail, everything works as expected.

> beans: Harmony does not throw NullPointerException in several cases while RI does.
> ----------------------------------------------------------------------------------
>
>          Key: HARMONY-373
>          URL: http://issues.apache.org/jira/browse/HARMONY-373
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Dmitry M. Kononov
>     Assignee: Mikhail Loenko
>     Priority: Minor
>  Attachments: beans.cumulative.diff
>
> Harmony does not throw NPE as it is described below:
> 1) java.beans.beancontext.BeanContextSupport.getResourceAsStream(String name, BeanContextChild bcc):
> Harmony does not throw NullPointerException when name="",bcc=null, while RI throws it.
> Direct method specification says only "Throws: NullPointerException".
> 2) java.beans.beancontext.BeanContextSupport.getResourceAsStream(String name, BeanContextChild bcc):
> Harmony throws IllegalArgumentException when name=null,bcc=null, while RI throws NullPointerException.
> Specification does not mention IllegalArgumentException, but says about NullPointerException throwing.
> 3) java.beans.beancontext.BeanContextSupport.vetoableChange(PropertyChangeEvent pce):
> Harmony does not throw NullPointerException when pce=null, while RI throws it.
> Specification does not mention NullPointerException.
> 4) java.beans.beancontext.BeanContextServicesSupport.hasService(Class c):
> Harmony does not throw NullPointerException when parameter c=null, while RI throws it.
> Specification doesn't say anything about NullPointerException throwing.
> 5) java.beans.beancontext.BeanContextServicesSupport.removeBeanContextServicesListener(BeanContextServicesListener bcsl):
> Harmony does not throw NullPointerException when parameter bcsl=null, while RI throws it.
> Specification doesn't say anything about NullPointerException throwing.
> 6) java.beans.beancontext.BeanContextServicesSupport.serviceAvailable(BeanContextServiceAvailableEvent bcssae):
> Harmony does not throw NullPointerException when parameter bcssae=null, while RI throws it.
> Specification doesn't say anything about NullPointerException throwing.
> 7) java.beans.beancontext.BeanContextServicesSupport.serviceRevoked(BeanContextServiceRevokedEvent bcssre):
> Harmony does not throw NullPointerException when parameter bcssre=null, while RI throws it.
> Specification doesn't say anything about NullPointerException throwing.
> 8) java.beans.beancontext.BeanContextSupport.getResource(String name, BeanContextChild bcc):
> Harmony does not throw NullPointerException  when name="",bcc=null, while RI throws it.
> Specification does not mention NullPointerException.
> 9) java.beans.beancontext.BeanContextSupport.getResource(String name, BeanContextChild bcc):
> Harmony throws IllegalArgumentException when name=null,bcc=null, while RI throws NullPointerException.
> Specification does not mention neither NullPointerException nor IllegalArgumentException.

-- 
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