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/03/14 15:28:10 UTC
[jira] Updated: (HARMONY-2696) [classlib][swing]
javax.swing.plaf.basic.BasicCheckBoxMenuItemUI.getPreferredSize() does not
throw unspecified NPE
[ 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.