Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 40830 invoked from network); 16 Dec 2006 11:35:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2006 11:35:25 -0000 Received: (qmail 5297 invoked by uid 500); 16 Dec 2006 11:28:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 5203 invoked by uid 500); 16 Dec 2006 11:28:53 -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 5194 invoked by uid 99); 16 Dec 2006 11:28:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Dec 2006 03:28:53 -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; Sat, 16 Dec 2006 03:28:45 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3DC7871413D for ; Sat, 16 Dec 2006 03:28:25 -0800 (PST) Message-ID: <13361561.1166268505250.JavaMail.jira@brutus> Date: Sat, 16 Dec 2006 03:28:25 -0800 (PST) From: "Stepan Mishura (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2733) [java][security]AlgorithmParameters.getParamterSpec should throw NullPointerException if the input AlgorithmSpec class is null. In-Reply-To: <19911844.1166171541052.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 [ http://issues.apache.org/jira/browse/HARMONY-2733?page=all ] Stepan Mishura updated HARMONY-2733: ------------------------------------ Component/s: Classlib > [java][security]AlgorithmParameters.getParamterSpec should throw NullPointerException if the input AlgorithmSpec class is null. > ------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2733 > URL: http://issues.apache.org/jira/browse/HARMONY-2733 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Leo Li > Assigned To: Stepan Mishura > Attachments: patch-2733.diff > > > Here is a testcase: > public void test_algorithmParameters_getParamterSpec() throws Exception { > AlgorithmParameters algorithmParameters = AlgorithmParameters > .getInstance("DSA"); > algorithmParameters.init(new DSAParameterSpec(BigInteger.ONE, > BigInteger.ONE, BigInteger.ONE)); > try { > algorithmParameters.getParameterSpec(null); > fail("should throw NullPointerException"); > } catch (NullPointerException e) { > // expected > } > } > RI passes. > Harmony fails. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira