You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2007/01/25 07:39:49 UTC

[jira] Resolved: (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 ]

Stepan Mishura resolved HARMONY-3045.
-------------------------------------

    Resolution: Fixed

Thanks Ruth - the modified patch was applied to SECURITY module at r499684.

Please check that the patch was applied as you expected.

> [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.