harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
Date Mon, 08 Jan 2007 01:51:27 GMT

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

Vasily Zakharov updated HARMONY-2896:
-------------------------------------

    Attachment: Harmony-2896.patch

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null)
does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null)
while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> import junit.framework.TestCase;
> import junit.textui.TestRunner;
> public class test extends TestCase {
>     public static void main(String args[]) {
>         TestRunner.run(test.class);
>     }
>     public void testRun() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
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