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/18 13:14:17 UTC
[jira] Created: (HARMONY-373) beans: Harmony does not throw
NullPointerException in several cases while RI does.
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
Re: [jira] Created: (HARMONY-373) beans: Harmony does not throw NullPointerException in several cases while RI does.
Posted by "Dmitry M. Kononov" <dm...@gmail.com>.
On 4/18/06, Mark Hindess <ma...@googlemail.com> wrote:
> Dmitry,
>
> Out of curiosity, how are you discovering these? I've just uploaded an
> updated version of my testing tool to HARMONY-325. I think it should
> find most of the problems you are reporting - see the results file,
> harmony.exception.differences-0.02.txt. It can also generate test
> cases.
Mark,
Alex Orlov has mentioned a similar tool in the thread "matching
reference implementation exception behaviour".
This issue (HARMONY-373) is the first one from a series that was
discovered by the tool. Actually, I have got lots of issues that have
already investigated with prepared unit tests. So, I just prepare
patches and file JIRA issues.
Thanks.
--
Dmitry M. Kononov
Intel Managed Runtime Division
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [jira] Created: (HARMONY-373) beans: Harmony does not throw NullPointerException in several cases while RI does.
Posted by Mark Hindess <ma...@googlemail.com>.
On 4/18/06, Dmitry M. Kononov (JIRA) <ji...@apache.org> wrote:
> 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".
> [SNIP]
Dmitry,
Out of curiosity, how are you discovering these? I've just uploaded an
updated version of my testing tool to HARMONY-325. I think it should
find most of the problems you are reporting - see the results file,
harmony.exception.differences-0.02.txt. It can also generate test
cases.
Sadly it doesn't fix the bugs. ;-)
Regards,
Mark.
--
Mark Hindess <ma...@googlemail.com>
IBM Java Technology Centre, UK.
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
[jira] Updated: (HARMONY-373) beans: Harmony does not throw
NullPointerException in several cases while RI does.
Posted by "Dmitry M. Kononov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-373?page=all ]
Dmitry M. Kononov updated HARMONY-373:
--------------------------------------
Attachment: beans.cumulative.diff
A patch is attached. It is a cumulative patch that contains fixes and unit test cases.
> 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
> 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
[jira] Assigned: (HARMONY-373) beans: Harmony does not throw
NullPointerException in several cases while RI does.
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-373?page=all ]
Mikhail Loenko reassigned HARMONY-373:
--------------------------------------
Assign To: Mikhail Loenko
> 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
[jira] Commented: (HARMONY-373) beans: Harmony does not throw
NullPointerException in several cases while RI does.
Posted by "Dmitry M. Kononov (JIRA)" <ji...@apache.org>.
[ 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
[jira] Closed: (HARMONY-373) beans: Harmony does not throw
NullPointerException in several cases while RI does.
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-373?page=all ]
Mikhail Loenko closed HARMONY-373:
----------------------------------
verified by Dmitry
> 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
[jira] Resolved: (HARMONY-373) beans: Harmony does not throw
NullPointerException in several cases while RI does.
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ 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