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] Created: (HARMONY-3045) [classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns 0 while RI throws NPE
Date Wed, 24 Jan 2007 10:25:49 GMT
[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


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