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:25:49 UTC
[jira] Created: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
[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.
[jira] Updated: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
Posted by "Ruth Cao (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stepan Mishura reassigned HARMONY-3045:
---------------------------------------
Assignee: Stepan Mishura
> [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.
[jira] Commented: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
Posted by "Ruth Cao (JIRA)" <ji...@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.
[jira] Commented: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467261 ]
Stepan Mishura commented on HARMONY-3045:
-----------------------------------------
The issue is result of discussion on harmony-dev. See:
http://mail-archives.apache.org/mod_mbox/harmony-dev/200701.mbox/%3c843dd4f00701230250u3f6f7386wa7a7fe8ce07b0de9@mail.gmail.com%3e
> [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.
[jira] Closed: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stepan Mishura closed HARMONY-3045.
-----------------------------------
Verified by Ruth.
> [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.
[jira] Resolved: (HARMONY-3045)
[classlib][security]MessageDigestSpi.engineDigest(byte[], int, int) returns
0 while RI throws NPE
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ 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.