You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ruth Cao (JIRA)" <ji...@apache.org> on 2007/01/24 11:57:49 UTC
[jira] Updated: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
[ https://issues.apache.org/jira/browse/HARMONY-3045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruth Cao updated HARMONY-3045:
------------------------------
Attachment: Harmony-3045.diff
May somebody validate and try this patch?
> [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
> 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.