harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-266) java.security.Signature.getInstance(String,Provider) should match 5.0 reference implementations behaviour
Date Tue, 28 Mar 2006 19:21:33 GMT
     [ 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


Mime
View raw message