harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2019) [classlib][awt] Container.remove(null) expected NPE
Date Wed, 17 Jan 2007 11:48:28 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Pavlenko updated HARMONY-2019:
-------------------------------------

    Attachment: Container.patch

> [classlib][awt] Container.remove(null) expected NPE
> ---------------------------------------------------
>
>                 Key: HARMONY-2019
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2019
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: Container.patch, Container.patch, ContainerRTest.patch
>
>
> Harmony implementation of Container.remove(Component ) doesn't throw NPE while RI does.
Spec silent about any exceptions.
> ========== Test ============
> import java.awt.*;
> public class Test {	
>     static public void main(String[] args) {
>     	Container cmp = new Container();
>     	cmp.remove((Button )null);
>     	System.out.println("PASSED");
>     }    
> }
> ======== RI ===========
> java.lang.NullPointerException
> 	at java.awt.Container.remove(Container.java:1165)
> 	at Test.main(Test.java:9)
> ===== Harmony ========
> PASSED

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message