harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2696) [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getPreferredSize() does not throw unspecified NPE
Date Wed, 14 Mar 2007 14:28:10 GMT

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

Alexei Zakharov updated HARMONY-2696:
-------------------------------------

    Priority: Minor  (was: Major)

> [classlib][swing] javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getPreferredSize() does
not throw unspecified NPE
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2696
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2696
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>            Priority: Minor
>
> javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getPreferredSize() does not
> throw unspecified NPE while RI does.
> Trere is no mention of any exception in the specification.
> Compatibility issue.
> import javax.swing.JRadioButtonMenuItem;
> import javax.swing.plaf.basic.BasicCheckBoxMenuItemUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {       
>     public void testcase1() {
>         BasicCheckBoxMenuItemUI m = new BasicCheckBoxMenuItemUI();
>         try {
>             m.getPreferredSize(new JRadioButtonMenuItem());             
>             fail("NPE should be thrown");
>         } catch ( NullPointerException e) { 
>           //expected
>         }
>     }
> }

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


Mime
View raw message