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/15 17:13:10 UTC
[jira] Updated: (HARMONY-2709) [classlib][swing]
javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws
unspecified IllegalArgumentException
[ https://issues.apache.org/jira/browse/HARMONY-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko updated HARMONY-2709:
-------------------------------------
Patch Info: (was: [Patch Available])
> [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.