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/21 11:10:25 UTC

[jira] Resolved: (HARMONY-2762) [classlib][security]UnresolvedPermission fails in serialization.

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

Stepan Mishura resolved HARMONY-2762.
-------------------------------------

    Resolution: Fixed

Thanks Leo - the modified patch was applied to SECURITY module at r489306.

The fix also showed that golden files for UnresolvedPermissionCollectionTest are corrupted too - the test started to fail after applying your patch. So I've recreated them too.

Please check that the patch was applied as you expected.

> [classlib][security]UnresolvedPermission fails in serialization.
> ----------------------------------------------------------------
>
>                 Key: HARMONY-2762
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2762
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>         Attachments: patch-2762.zip, test.zip
>
>
> Here is a testcase:
> public void testSerialization() throws Exception {
> 		CertificateFactory factory = CertificateFactory.getInstance("X.509");
> 		Certificate certificate = factory
> 				.generateCertificate(Support_Resources
> 		                .getResourceStream("java/security/test.cert"));
> 		UnresolvedPermission unresolvedPermission = new UnresolvedPermission(
> 				"testType", "testName", "testActions",
> 				new Certificate[] { certificate });
> 		SerializationTest.verifySelf(unresolvedPermission);		
> 		SerializationTest.verifyGolden(this, unresolvedPermission);
> 	}

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