You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/03/01 21:41:51 UTC

[jira] Closed: (HARMONY-1667) [classlib][awt] RI BorderLayout.addLayoutComponent(Component, null) throws NPE while Harmony doesn't

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

Alexey Petrenko closed HARMONY-1667.
------------------------------------

    Resolution: Fixed

> [classlib][awt] RI BorderLayout.addLayoutComponent(Component, null) throws NPE while Harmony doesn't
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1667
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: HARMONY-1667-BorderLayout.patch, HARMONY-1667-BorderLayoutTest.patch, HARMONY-1667-build.patch
>
>
> Harmony BorderLayout .addLayoutComponent(Component, Object) doesn't throw NPE while RI does if constraints parameter is null. Spec doesn't say anything about NPE.
> ============== Test ==================
> import java.awt.BorderLayout;
> import java.awt.Component;
> public class Test {
>     public static void main(String[] argv) {
>         BorderLayout layout = new BorderLayout();
>         layout.addLayoutComponent((Component) null,(Object)  null);
>    }
> }
> =========== RI output ==============
> java.lang.NullPointerException
>     at java.awt.BorderLayout.addLayoutComponent(BorderLayout.java:405)
>     at Test.main(Test.java:7)
> ======= Harmony output ============
> nothing

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.