Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 31921 invoked from network); 25 Jan 2007 07:14:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2007 07:14:10 -0000 Received: (qmail 90026 invoked by uid 500); 25 Jan 2007 07:14:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 89995 invoked by uid 500); 25 Jan 2007 07:14: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 89986 invoked by uid 99); 25 Jan 2007 07:14: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 23:14: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 23:14:09 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 665C27142D4 for ; Wed, 24 Jan 2007 23:13:49 -0800 (PST) Message-ID: <27841468.1169709229416.JavaMail.jira@brutus> Date: Wed, 24 Jan 2007 23:13:49 -0800 (PST) From: "Ruth Cao (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3045) [classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns 0 while RI throws NPE In-Reply-To: <16922939.1169634349206.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-3045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467269 ] Ruth Cao commented on HARMONY-3045: ----------------------------------- It works well. Thank you very much, Stepan. > [classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns 0 while RI throws NPE > ------------------------------------------------------------------------------------------------- > > Key: HARMONY-3045 > URL: https://issues.apache.org/jira/browse/HARMONY-3045 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ruth Cao > Assigned To: Stepan Mishura > Attachments: Harmony-3045.diff > > > Consider the following test case: > public void testDigestbyteArrayintint() throws Exception { > MyMessageDigest1 md = new MyMessageDigest1("ABC"); > byte[] b = {1, 2, 3, 4, 5}; > try { > md.digest(b, 2, 3) > fail("should throw NullPointerException"); > }catch (NullPointerException e) { > // expected > } > } > RI passes while Harmony fails. > I'll attach a patch soon. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.