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] Assigned: (HARMONY-2909) [classlib][security]X509CRLSelector.getIssuerNames() should contain a byte array instead of the string representing it if the byte array is added to the X509CRLSelector by addIssueName().
Date Thu, 28 Dec 2006 10:01:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2909?page=all ]

Stepan Mishura reassigned HARMONY-2909:
---------------------------------------

    Assignee: Stepan Mishura

> [classlib][security]X509CRLSelector.getIssuerNames() should contain a byte array instead
of the string representing it if the byte array is added to the X509CRLSelector by addIssueName().
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2909
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2909
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>         Attachments: patch-2909.diff
>
>
> public void test_addIssuerName$B_5() throws Exception {
>         X509CRLSelector  x509CRLSelector= new X509CRLSelector();
>         X500Principal x500Principal = new X500Principal("CN=Duke, OU=JavaSoft, O=Sun
Microsystems, C=US");
>         byte[] encoded = x500Principal.getEncoded();
>         x509CRLSelector.addIssuerName(encoded);
>         Collection<Object> c = x509CRLSelector.getIssuerNames();
>         assertEquals(1, c.size());
>         byte[] bytes = (byte[]) c.iterator().next();
>         assertTrue(Arrays.equals(encoded, bytes));        
> }
> 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