Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59344 invoked from network); 16 Jan 2007 13:19:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 13:19:48 -0000 Received: (qmail 86673 invoked by uid 500); 16 Jan 2007 13:19:54 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 86648 invoked by uid 500); 16 Jan 2007 13:19: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 86639 invoked by uid 99); 16 Jan 2007 13:19:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 05:19: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; Tue, 16 Jan 2007 05:19:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 888AA7142B5 for ; Tue, 16 Jan 2007 05:19:27 -0800 (PST) Message-ID: <32697695.1168953567529.JavaMail.jira@brutus> Date: Tue, 16 Jan 2007 05:19:27 -0800 (PST) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-2823) [classlib][swing] javax.swing.plaf.basic.BasicFileChooserUI.getApproveButtonToolTipText(null) returns null while RI throws NPE In-Reply-To: <6492923.1166632286150.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-2823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess closed HARMONY-2823. --------------------------------- Verified. Thanks. > [classlib][swing] javax.swing.plaf.basic.BasicFileChooserUI.getApproveButtonToolTipText(null) returns null while RI throws NPE > ------------------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-2823 > URL: https://issues.apache.org/jira/browse/HARMONY-2823 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Oleg Khaschansky > Assigned To: Mark Hindess > Priority: Minor > Attachments: Harmony-2823-BasicFileChooserUI.patch, Harmony-2823-BasicFileChooserUITest.patch > > > javax.swing.plaf.basic.BasicFileChooserUI.getApproveButtonToolTipText(null) returns null while RI throws NPE. The current implementation of this method simply ignores the passed parameter. Probably, it shouldn't be ignored. > The following test case demonstrates this behavior: > ----------------------------------------------------------------------------------- > import junit.framework.TestCase; > import javax.swing.plaf.basic.BasicFileChooserUI; > import javax.swing.*; > public class Test0 extends TestCase { > public void testcase1() { > BasicFileChooserUI b = new BasicFileChooserUI(new JFileChooser("")); > try { > b.getApproveButtonToolTipText(null); > fail("NPE should be thrown"); > } catch ( NullPointerException e) { > //expected > } > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira