You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/01/26 14:28:49 UTC
[jira] Closed: (HARMONY-2019) [classlib][awt]
Container.remove(null) expected NPE
[ https://issues.apache.org/jira/browse/HARMONY-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov closed HARMONY-2019.
------------------------------------
Verified by Andrew.
> [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
> Assigned To: Alexei Zakharov
> Attachments: Container.patch, Container.patch, ContainerRTest.patch, HARMONY-2019-AWT.patch, HARMONY-2019-SWING.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.
-
You can reply to this email to add a comment to the issue online.