harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2609) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent() throws NPE while RI does not
Date Thu, 22 Feb 2007 14:25:16 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov updated HARMONY-2609:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent()
throws NPE while RI does not
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2609
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2609
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2609-BasicTabbedPaneUI.patch, Harmony-2609-TabbedPaneLayoutTest.patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message