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-2762) [classlib][security]UnresolvedPermission fails in serialization.
Date Mon, 18 Dec 2006 09:06:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2762?page=comments#action_12459232 ] 
            
Leo Li commented on HARMONY-2762:
---------------------------------

Hi, all:
      When making my patch, I found that there are several ser files about UnresolvedPermission
cannot be deserialized on RI, which hence might make the patch I made fails on original serialization
testcases. They include : UnresolvedPermissionTest.golden.0.ser, UnresolvedPermissionTest.golden.1.ser
,
UnresolvedPermissionCollectionTest.golden.1.ser  and
UnresolvedPermissionCollectionTest.golden.2.ser ,
(There exits a bug on Harmony on which thus they can pass.) 
     Could somebody help me to verify it?

> [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
>         Attachments: 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

        

Mime
View raw message