harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth Cao (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3045) [classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns 0 while RI throws NPE
Date Wed, 24 Jan 2007 10:57:49 GMT

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


Mime
View raw message