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] Resolved: (HARMONY-373) beans: Harmony does not throw NullPointerException in several cases while RI does.
Date Wed, 19 Apr 2006 08:32:17 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-373?page=all ]
     
Mikhail Loenko resolved HARMONY-373:
------------------------------------

    Resolution: Fixed

fixed in revision 395159
Dmitry, please verify that it fully resolves the problem

> 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


Mime
View raw message