harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Okomin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2609) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent() throws NPE while RI does not
Date Mon, 11 Dec 2006 14:31:25 GMT
[classlib][swing] Compatibility: javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent()
throws NPE while RI does not
-----------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2609
                 URL: http://issues.apache.org/jira/browse/HARMONY-2609
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Ilya Okomin
            Priority: Minor


Harmony throws unspecified NPE for javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent(JPopupMenu)
while RI does not. Check test output:

-------------- test.java ------------
import junit.framework.TestCase;
import junit.textui.TestRunner;

import javax.swing.plaf.basic.BasicTabbedPaneUI;
import javax.swing.plaf.metal.MetalTabbedPaneUI;
import javax.swing.JPopupMenu;

public class test extends TestCase {

    public static void main(String args[]) {
        TestRunner.run(test.class);
    }

    public void testRun() {
        MetalTabbedPaneUI localMetalTabbedPaneUI = new MetalTabbedPaneUI();
        BasicTabbedPaneUI.TabbedPaneLayout localTabbedPaneLayout = 
            localMetalTabbedPaneUI.new TabbedPaneLayout();
        JPopupMenu localJPopupMenu = new JPopupMenu();
        localTabbedPaneLayout.removeLayoutComponent(localJPopupMenu);
    }
}
-----------------------------

OUTPUT Harmony:
===============
.E
Time: 2.794
There was 1 error:
1) testRun(test)java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(BasicTabbedPaneUI.java:145)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.removeLayoutComponent(BasicTabbedPaneUI.java:503)
	at test.testRun(test.java:18)
	at java.lang.reflect.VMReflection.invokeMethod(Native Method)
	at test.main(test.java:11)

FAILURES!!!
Tests run: 1,  Failures: 0,  Errors: 1

OUTPUT RI:
==========
.
Time: 0.938

OK (1 test)


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