harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Loenko (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-266) java.security.Signature.getInstance(String,Provider) should match 5.0 reference implementations behaviour
Date Thu, 07 Sep 2006 07:25:24 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-266?page=all ]

Mikhail Loenko resolved HARMONY-266.
------------------------------------

    Resolution: Fixed

The second patch was applied in revision 441005
Mark please confirm that it has resolved the problem

> 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
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mark Hindess
>         Assigned To: Mikhail Loenko
>            Priority: Trivial
>         Attachments: patch.txt, 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

        

Mime
View raw message