harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-315) [classlib][crypto] javax.crypto.Cipher.getInstance doesn't match RI exception behaviour.
Date Tue, 17 Apr 2007 09:15:16 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko updated HARMONY-315:
------------------------------------

    Summary: [classlib][crypto] javax.crypto.Cipher.getInstance doesn't match RI exception
behaviour.  (was: javax.crypto.Cipher.getInstance doesn't match RI exception behaviour.)

> [classlib][crypto] javax.crypto.Cipher.getInstance doesn't match RI exception behaviour.
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-315
>                 URL: https://issues.apache.org/jira/browse/HARMONY-315
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mark Hindess
>         Assigned To: 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message