Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 60984 invoked from network); 24 Jan 2007 20:02:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 20:02:12 -0000 Received: (qmail 19285 invoked by uid 500); 24 Jan 2007 20:02:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 19236 invoked by uid 500); 24 Jan 2007 20:02:16 -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 19215 invoked by uid 99); 24 Jan 2007 20:02:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jan 2007 12:02:16 -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; Wed, 24 Jan 2007 12:02:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A1CC7142D4 for ; Wed, 24 Jan 2007 12:01:49 -0800 (PST) Message-ID: <31167593.1169668909366.JavaMail.jira@brutus> Date: Wed, 24 Jan 2007 12:01:49 -0800 (PST) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2446) [classlib][awt] java.awt.DefaultKeyboardFocusManager.setDefaultFocusTraversalKeys() does not throw IllegalArgumentException if second argument is null In-Reply-To: <18069415.1165250481759.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-2446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467129 ] Andrey Pavlenko commented on HARMONY-2446: ------------------------------------------ Alexei, this issues is already fixed in HARMONY-2493. You can close this issue. > [classlib][awt] java.awt.DefaultKeyboardFocusManager.setDefaultFocusTraversalKeys() does not throw IllegalArgumentException if second argument is null > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: HARMONY-2446 > URL: https://issues.apache.org/jira/browse/HARMONY-2446 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Pavel Dolgov > Assigned To: Alexei Zakharov > Priority: Minor > Attachments: KeyboardFocusManager.patch, KeyboardFocusManagerRTest.patch > > > Test case: > ---------------- > import java.awt.DefaultKeyboardFocusManager; > import java.awt.KeyboardFocusManager; > import junit.framework.TestCase; > public class TheTest extends TestCase { > public static void main(String args[]) { > junit.textui.TestRunner.run(TheTest.class); > } > public void testcase1() { > DefaultKeyboardFocusManager dkm = new DefaultKeyboardFocusManager(); > try { > dkm.setDefaultFocusTraversalKeys( > KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, null); > fail("IAE expected"); > } catch (IllegalArgumentException e) { > } catch (Exception e) { > fail(e.getMessage()); > } > } > } > RI output: > -------------- > . > Time: 0,701 > OK (1 test) > Harmony output: > -------------- > .F > Time: 0.491 > There was 1 failure: > 1) testcase1(TheTest)junit.framework.AssertionFailedError: IAE expected > at TheTest.testcase1(TheTest.java:17) > at java.lang.reflect.VMReflection.invokeMethod(Native Method) > at TheTest.main(TheTest.java:9) > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.