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] Created: (HARMONY-2786) [classlib][security]PKIXCertPathValidatorResult fails to implement clone.
Date Tue, 19 Dec 2006 05:22:21 GMT
[classlib][security]PKIXCertPathValidatorResult fails to implement clone.

                 Key: HARMONY-2786
                 URL: http://issues.apache.org/jira/browse/HARMONY-2786
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li

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


View raw message