harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2724) [classlib][security]AlgorithmParameters.init(byte[] params, String spec) throws NullPointerException while spec is Null on Harmony while not on RI.
Date Tue, 19 Dec 2006 15:24:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2724?page=comments#action_12459666 ] 
            
Leo Li commented on HARMONY-2724:
---------------------------------

Hi, Stepan:
      Maybe we shall ask bouncy castle guys how to deal with it.
Leo

> [classlib][security]AlgorithmParameters.init(byte[] params, String spec) throws NullPointerException
while spec is Null on Harmony while not on RI.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2724
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2724
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>
> Here is a testcase:
> public void test_algorithmParameters_init() throws Exception
>     {
>     	AlgorithmParameters params = AlgorithmParameters.getInstance("DSA");
>         params.init(new DSAParameterSpec(BigInteger.ONE, BigInteger.ONE,
>                 BigInteger.ONE));
>         byte[] encoded = params.getEncoded();        
>         AlgorithmParameters params2 = AlgorithmParameters.getInstance("DSA");
>         params2.init(encoded, "ASN.1");
>         byte[] encodedAfter2 = params2.getEncoded();
>         
>         //Regression Test
>         AlgorithmParameters params3 = AlgorithmParameters.getInstance("DSA");
>         params3.init(encoded, null);
>         byte[] encodedAfter3 = params3.getEncoded();
>         assertTrue("param encoded is different", Arrays.equals(encodedAfter2,
>                 encodedAfter3));        
>     }
> RI passes.
> Harmony fails.

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