You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sergey Krivenko (JIRA)" <ji...@apache.org> on 2007/03/12 14:34:09 UTC
[jira] Commented: (HARMONY-2609) [classlib][swing] Compatibility:
javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent()
throws NPE while RI does not
[ https://issues.apache.org/jira/browse/HARMONY-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480087 ]
Sergey Krivenko commented on HARMONY-2609:
------------------------------------------
Alexey, thanks for the fix.
Verified.
> [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
> Assigned To: Alexey Petrenko
> 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.