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] Created: (HARMONY-2709) javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws unspecified IllegalArgumentException
Date Thu, 14 Dec 2006 15:21:21 GMT
javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws unspecified IllegalArgumentException
----------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2709
                 URL: http://issues.apache.org/jira/browse/HARMONY-2709
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Alexander Simbirtsev


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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message