You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2006/12/19 09:37:23 UTC

[jira] Assigned: (HARMONY-2786) [classlib][security]PKIXCertPathValidatorResult fails to implement clone.

     [ http://issues.apache.org/jira/browse/HARMONY-2786?page=all ]

Stepan Mishura reassigned HARMONY-2786:
---------------------------------------

    Assignee: Stepan Mishura

> [classlib][security]PKIXCertPathValidatorResult fails to implement clone.
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-2786
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2786
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>         Attachments: patch-2786.diff
>
>
> Here is  a testcase:
> ublic final void testPKIXCertPathBuilderResult_clone()
>         throws InvalidKeySpecException,
>                NoSuchAlgorithmException {
>         TrustAnchor ta = TestUtils.getTrustAnchor();
>         if (ta == null) {
>             fail(getName() + ": not performed (could not create test TrustAnchor)");
>         }
>         CertPathBuilderResult r =
>             new PKIXCertPathBuilderResult(
>                     new MyCertPath(testEncoding),
>                     ta,
>                     TestUtils.getPolicyTree(),
>                     testPublicKey);
>              
>         PKIXCertPathBuilderResult r1 = (PKIXCertPathBuilderResult) r;
> 		PKIXCertPathBuilderResult r2 = (PKIXCertPathBuilderResult) r1.clone();
> 		assertSame(r1.getCertPath(), r2.getCertPath());
> 		assertSame(r1.getPolicyTree(), r2.getPolicyTree());
> 		assertSame(r1.getPublicKey(), r2.getPublicKey());
> 		assertSame(r1.getTrustAnchor(), r2.getTrustAnchor());    
>     }
> 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