Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 23980 invoked from network); 12 Jan 2007 12:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 12:09:48 -0000 Received: (qmail 97653 invoked by uid 500); 12 Jan 2007 12:09:55 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97551 invoked by uid 500); 12 Jan 2007 12:09:55 -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 97541 invoked by uid 99); 12 Jan 2007 12:09:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 04:09:55 -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, 12 Jan 2007 04:09:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9745E7142CF for ; Fri, 12 Jan 2007 04:09:27 -0800 (PST) Message-ID: <8832167.1168603767616.JavaMail.jira@brutus> Date: Fri, 12 Jan 2007 04:09:27 -0800 (PST) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2888) [classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(int) does not throw IllegalArgumentException in case of incorrect direction In-Reply-To: <20342982.1167212601084.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-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov updated HARMONY-2888: ------------------------------------- Patch Info: [Patch Available] > [classlib][swing] javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(int) does not throw IllegalArgumentException in case of incorrect direction > --------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2888 > URL: https://issues.apache.org/jira/browse/HARMONY-2888 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ilya Okomin > Priority: Minor > Attachments: Harmony-2888-BasicTabbedPaneUI.patch, Harmony-2888-BasicTabbedPaneUITest.patch > > > Specification says that this method should throw IllegalArgumentException, if direction is not one of NORTH, SOUTH, EAST or WEST. But Harmony does not throw IllegalArgumentException instead of RI. > Test to reproduce: > --------------------------------------------- > import javax.swing.*; > import javax.swing.plaf.basic.*; > class lBasicTabbedPaneUI extends BasicTabbedPaneUI { > public lBasicTabbedPaneUI() { > super(); > } > public JButton createScrollButton(int direction) { > return super.createScrollButton(direction); > } > } > public class TestForBugReproduce > { > public static void main(String args[]) { > lBasicTabbedPaneUI localBasicTabbedPaneUI = new > lBasicTabbedPaneUI(); > int localVariable0 = 80; > JButton returnValue = > localBasicTabbedPaneUI.createScrollButton(localVariable0); > System.out.println("Ok"); > } > } > ---------------------------------- > Output on RI: > =========== > Exception in thread "main" java.lang.IllegalArgumentException: Direction must > be one of: SOUTH, NORTH, EAST or WEST > at > javax.swing.plaf.basic.BasicTabbedPaneUI.createScrollButton(BasicTabbedPaneUI.java:275) > at lBasicTabbedPaneUI.createScrollButton(TestForBugReproduce.java:9) > at TestForBugReproduce.main(TestForBugReproduce.java:19) > Output on Harmony: > ================ > Ok -- 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