Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 41297 invoked from network); 19 Mar 2007 11:49:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2007 11:49:04 -0000 Received: (qmail 84911 invoked by uid 500); 19 Mar 2007 11:49:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 84886 invoked by uid 500); 19 Mar 2007 11:49:02 -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 84793 invoked by uid 99); 19 Mar 2007 11:49:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 04:49:02 -0700 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, 19 Mar 2007 04:48:53 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5DBCA714089 for ; Mon, 19 Mar 2007 04:48:33 -0700 (PDT) Message-ID: <32406698.1174304913380.JavaMail.jira@brutus> Date: Mon, 19 Mar 2007 04:48:33 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-2709) [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws unspecified IllegalArgumentException In-Reply-To: <21559777.1166109681058.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-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko closed HARMONY-2709. ------------------------------------ > [classlib][swing] javax.swing.plaf.basic.BasicInternalFrameUI.setupMenuOpenKey() throws unspecified IllegalArgumentException > ---------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2709 > URL: https://issues.apache.org/jira/browse/HARMONY-2709 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Alexander Simbirtsev > Assigned To: Alexey Petrenko > Attachments: Harmony-2709-BasicInternalFrameUI.patch, Harmony-2709-BasicInternalFrameUITest.patch > > > Compatibility > There is no mention of any exception in the specification. > Harmony throws unspecified IllegalArgumentException for setupMenuOpenKey() while RI throws unspecified NPE. > Use the following code to reproduce: > import javax.swing.JInternalFrame; > import javax.swing.plaf.basic.BasicInternalFrameUI; > import junit.framework.TestCase; > public class Test extends TestCase { > public void testcase1() { > try { > testBasicInternalFrameUI fr = new testBasicInternalFrameUI(null); > fr.setupMenuOpenKey(); > } catch (IllegalArgumentException e) { > fail("exception thrown"); > } catch (NullPointerException e) { > // expected > } > } > } > class testBasicInternalFrameUI extends BasicInternalFrameUI { > testBasicInternalFrameUI(JInternalFrame s){ > super(s); > } > > public void setupMenuOpenKey() { > super.setupMenuOpenKey(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.