harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2709) [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws unspecified IllegalArgumentException
Date Mon, 19 Mar 2007 11:16:32 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482055
] 

Alexander Simbirtsev commented on HARMONY-2709:
-----------------------------------------------

works fine. 
thank you!

> [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws
unspecified IllegalArgumentException
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2709
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2709
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Assigned To: Alexey Petrenko
>         Attachments: Harmony-2709-BasicInternalFrameUI.patch, Harmony-2709-BasicInternalFrameUITest.patch
>
>
> Compatibility
> There is no mention of any exception in the specification.
> Harmony throws unspecified IllegalArgumentException for setupMenuOpenKey() while RI throws
unspecified NPE.
> Use the following code to reproduce:
> import javax.swing.JInternalFrame;
> import javax.swing.plaf.basic.BasicInternalFrameUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {
>     public void testcase1() {                                    
>         try {
>             testBasicInternalFrameUI fr = new testBasicInternalFrameUI(null);
>             fr.setupMenuOpenKey();
>         } catch (IllegalArgumentException e) {
>             fail("exception thrown");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> class testBasicInternalFrameUI extends BasicInternalFrameUI {
>     testBasicInternalFrameUI(JInternalFrame s){
>         super(s);
>     }
>     
>     public void setupMenuOpenKey()  {
>         super.setupMenuOpenKey();
>     }
> }

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