harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry M. Kononov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-373) beans: Harmony does not throw NullPointerException in several cases while RI does.
Date Tue, 18 Apr 2006 11:14:17 GMT
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
    Priority: Minor


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