Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 71643 invoked from network); 2 Mar 2007 07:34:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 07:34:11 -0000 Received: (qmail 28247 invoked by uid 500); 2 Mar 2007 07:34:20 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 28221 invoked by uid 500); 2 Mar 2007 07:34:20 -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 28205 invoked by uid 99); 2 Mar 2007 07:34:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 23:34:20 -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; Thu, 01 Mar 2007 23:34:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ED7D47142E4 for ; Thu, 1 Mar 2007 23:33:50 -0800 (PST) Message-ID: <8852343.1172820830970.JavaMail.jira@brutus> Date: Thu, 1 Mar 2007 23:33:50 -0800 (PST) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-2895) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicFileChooserUI.getApproveButtonMnemonic(null) does not throw unspecified NPE In-Reply-To: <26976834.1167223161114.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-2895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko reassigned HARMONY-2895: ---------------------------------------- Assignee: Alexey Petrenko > [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicFileChooserUI.getApproveButtonMnemonic(null) does not throw unspecified NPE > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2895 > URL: https://issues.apache.org/jira/browse/HARMONY-2895 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Ilya Okomin > Assigned To: Alexey Petrenko > Priority: Minor > Attachments: Harmony-2895-BasicFileChooserUI.patch, Harmony-2895-BasicFileChooserUITest.patch > > > There is no mention of any exception in the specification. But RI throws unspecified NPE for getApproveButtonMnemonic(null) while Harmony does not. > Test case to reproduce, that passes on RI and fails on Harmony: > ----------- test.java ---------------- > import javax.swing.JFileChooser; > import javax.swing.plaf.basic.BasicFileChooserUI; > import junit.framework.TestCase; > import junit.textui.TestRunner; > public class test extends TestCase { > public static void main(String args[]) { > TestRunner.run(test.class); > } > public void testRun() { > try { > BasicFileChooserUI cb = new BasicFileChooserUI(new JFileChooser()); > cb.getApproveButtonMnemonic(null); > fail("NullPointerException expected"); > } catch (NullPointerException e) { > // expected > } > } > } > ---------------------------------------- > I suppose this case can be treated as non-bug difference. > Note: The same case with getApproveButtonToolTipText(null) and cb.getApproveButtonText((JFileChooser) null). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.