Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 97335 invoked from network); 23 Nov 2006 12:36:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Nov 2006 12:36:30 -0000 Received: (qmail 11617 invoked by uid 500); 23 Nov 2006 12:36:36 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 11593 invoked by uid 500); 23 Nov 2006 12:36:36 -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 11578 invoked by uid 99); 23 Nov 2006 12:36:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 04:36:36 -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; Thu, 23 Nov 2006 04:36:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 109357141E4 for ; Thu, 23 Nov 2006 04:36:06 -0800 (PST) Message-ID: <19117687.1164285366065.JavaMail.jira@brutus> Date: Thu, 23 Nov 2006 04:36:06 -0800 (PST) From: "Mikhail Loenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-266) java.security.Signature.getInstance(String,Provider) should match 5.0 reference implementations behaviour 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-266?page=all ] Mikhail Loenko closed HARMONY-266. ---------------------------------- assuming it's OK > 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 > Issue Type: Bug > Components: Classlib > Reporter: Mark Hindess > Assigned To: Mikhail Loenko > Priority: Trivial > Attachments: patch.txt, 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