Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 7333 invoked from network); 2 Feb 2007 17:12:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2007 17:12:27 -0000 Received: (qmail 1198 invoked by uid 500); 2 Feb 2007 17:12:33 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 1184 invoked by uid 500); 2 Feb 2007 17:12:33 -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 1172 invoked by uid 99); 2 Feb 2007 17:12:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 09:12:33 -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; Fri, 02 Feb 2007 09:12:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 003057142D4 for ; Fri, 2 Feb 2007 09:12:06 -0800 (PST) Message-ID: <32779205.1170436325998.JavaMail.jira@brutus> Date: Fri, 2 Feb 2007 09:12:05 -0800 (PST) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2663) [classlib][swing] javax.swing.plaf.basic.BasicMenuUI is inconsistent with RI In-Reply-To: <28309066.1166009784184.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469804 ] Vasily Zakharov commented on HARMONY-2663: ------------------------------------------ Thanks Alexei, the patch is fine. testInstallUninstallDefaults() fails on RI with or without this patch either. Enabling and verifying Swing tests is a huge issue, indeed. > [classlib][swing] javax.swing.plaf.basic.BasicMenuUI is inconsistent with RI > ---------------------------------------------------------------------------- > > Key: HARMONY-2663 > URL: https://issues.apache.org/jira/browse/HARMONY-2663 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Alexander Simbirtsev > Assigned To: Alexei Zakharov > Attachments: Harmony-2663-1-Test.patch, Harmony-2663-1-Test.patch, Harmony-2663-1.patch, Harmony-2663-2-Test.patch, Harmony-2663-2-Test.patch, Harmony-2663-2.patch > > > 1) Harmony throws ClassCastException for getMaximumSize(new JOptionPane()) while RI throws NPE. > 2) Harmony returns non-null value for createMenuListener() method while RI return null > Use the following code to reproduce: > import javax.swing.JComponent; > import javax.swing.JMenu; > import javax.swing.JOptionPane; > import javax.swing.event.MenuListener; > import javax.swing.plaf.basic.BasicMenuUI; > import junit.framework.TestCase; > public class Test extends TestCase { > public void testcase1() { > testBasicMenuUI bm = new testBasicMenuUI(); > assertNull(bm.createMenuListener(new JMenu())); > } > > public void testcase2() { > try { > BasicMenuUI bm = new BasicMenuUI(); > System.err.println(bm.getMaximumSize(new JOptionPane())); > } catch (ClassCastException e) { > fail("ClassCastException thrown"); > } catch (NullPointerException e) { > // expected > } > } > } > class testBasicMenuUI extends BasicMenuUI { > public MenuListener createMenuListener(JComponent l) { > return super.createMenuListener(l); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.