harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-315) javax.crypto.Cipher.getInstance doesn't match RI exception behaviour.
Date Thu, 20 Apr 2006 07:52:06 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-315?page=comments#action_12375281 ] 

Stepan Mishura commented on HARMONY-315:
----------------------------------------

Fixed at repo. revision 395524 - when provider parameter is null.
Fix for empty provider string was postponed for a while.

> javax.crypto.Cipher.getInstance doesn't match RI exception behaviour.
> ---------------------------------------------------------------------
>
>          Key: HARMONY-315
>          URL: http://issues.apache.org/jira/browse/HARMONY-315
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Mark Hindess
>     Assignee: Stepan Mishura
>     Priority: Trivial

>
> javax.crypto.getInstance methods doesn't match reference behaviour.  It throws NoSuchProvideExceptions
when it should be throwing IllegalArgumentExceptions.  See log below for details.
> RI is Sun Microsystems Inc. 1.5.0_06
> Test is harmony classlib
> javax.crypto.Cipher.getInstance("",""):
>   RI throws java.lang.IllegalArgumentException: Missing provider
>   Test throws java.security.NoSuchProviderException: Provider  is not available
> javax.crypto.Cipher.getInstance("",(java.lang.String)null):
>   RI throws java.lang.IllegalArgumentException: Missing provider
>   Test throws java.security.NoSuchProviderException: Provider null is not available
> javax.crypto.Cipher.getInstance((java.lang.String)null,""):
>   RI throws java.lang.IllegalArgumentException: Missing provider
>   Test throws java.security.NoSuchProviderException: Provider  is not available
> javax.crypto.Cipher.getInstance((java.lang.String)null,(java.lang.String)null):
>   RI throws java.lang.IllegalArgumentException: Missing provider
>   Test throws java.security.NoSuchProviderException: Provider null is not available

-- 
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