Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 48200 invoked from network); 11 Dec 2006 14:31:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2006 14:31:47 -0000 Received: (qmail 93090 invoked by uid 500); 11 Dec 2006 14:31:55 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 93066 invoked by uid 500); 11 Dec 2006 14:31:54 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 93057 invoked by uid 99); 11 Dec 2006 14:31:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 06:31:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Dec 2006 06:31:46 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EDAB4714310 for ; Mon, 11 Dec 2006 06:31:25 -0800 (PST) Message-ID: <24030344.1165847485971.JavaMail.jira@brutus> Date: Mon, 11 Dec 2006 06:31:25 -0800 (PST) From: "Ilya Okomin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-2609) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent() throws NPE while RI does not MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [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