Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 32184 invoked from network); 28 Mar 2006 19:21:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 19:21:56 -0000 Received: (qmail 62593 invoked by uid 500); 28 Mar 2006 19:21:55 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 62506 invoked by uid 500); 28 Mar 2006 19:21:54 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 62494 invoked by uid 99); 28 Mar 2006 19:21:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2006 11:21:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2006 11:21:54 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 59A3ED4A00 for ; Tue, 28 Mar 2006 20:21:33 +0100 (BST) Message-ID: <121959529.1143573693364.JavaMail.jira@ajax> Date: Tue, 28 Mar 2006 20:21:33 +0100 (BST) From: "Mark Hindess (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-266) java.security.Signature.getInstance(String,Provider) should match 5.0 reference implementations behaviour In-Reply-To: <2077132411.1143573558764.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-266?page=all ] Mark Hindess updated HARMONY-266: --------------------------------- Attachment: signature.npe.diff Patch with fix and test. > java.security.Signature.getInstance(String,Provider) should match 5.0 reference implementations behaviour > --------------------------------------------------------------------------------------------------------- > > Key: HARMONY-266 > URL: http://issues.apache.org/jira/browse/HARMONY-266 > Project: Harmony > Type: Bug > Components: Classlib > Reporter: Mark Hindess > Priority: Trivial > Attachments: signature.npe.diff > > Currently Harmony matches the 1.4 reference implementations behaviour with respect to exceptions but it should match the 5.0 RI behaviour which means: > Signature.getInstance((String)null,(String)null): > RI throws j.l.NullPointerException but Harmony throws j.l.IllegalArgumentException > Signature.getInstance((String)null,""): > RI throws j.l.NullPointerException but Harmony throws j.l.IllegalArgumentException > Signature.getInstance((String)null,(Provider)null): > RI throws j.l.NullPointerException but Harmony throws j.l.IllegalArgumentException > In other words, the order of the algorithm and providor validations should be reversed. > I will attach a patch shortly. -- 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