You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/03/28 21:21:33 UTC
[jira] Updated: (HARMONY-266)
java.security.Signature.getInstance(String,Provider) should match 5.0
reference implementations behaviour
[ http://issues.apache.org/jira/browse/HARMONY-266?page=all ]
Mark Hindess updated HARMONY-266:
---------------------------------
Attachment: signature.npe.diff
Patch with fix and test.
> java.security.Signature.getInstance(String,Provider) should match 5.0 reference implementations behaviour
> ---------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-266
> URL: http://issues.apache.org/jira/browse/HARMONY-266
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
> Priority: Trivial
> Attachments: signature.npe.diff
>
> Currently Harmony matches the 1.4 reference implementations behaviour with respect to exceptions but it should match the 5.0 RI behaviour which means:
> Signature.getInstance((String)null,(String)null):
> RI throws j.l.NullPointerException but Harmony throws j.l.IllegalArgumentException
> Signature.getInstance((String)null,""):
> RI throws j.l.NullPointerException but Harmony throws j.l.IllegalArgumentException
> Signature.getInstance((String)null,(Provider)null):
> RI throws j.l.NullPointerException but Harmony throws j.l.IllegalArgumentException
> In other words, the order of the algorithm and providor validations should be reversed.
> I will attach a patch shortly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira