harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Hope (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6503) [classlib][luni] ObjectOutputStream.writeObject throws AccessControlException when suppressAccessChecks not granted
Date Tue, 20 Apr 2010 10:12:49 GMT
[classlib][luni] ObjectOutputStream.writeObject throws AccessControlException when suppressAccessChecks
not granted
-------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-6503
                 URL: https://issues.apache.org/jira/browse/HARMONY-6503
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Catherine Hope
            Priority: Minor


Calling java.io.ObjectOutputStream.writeObject(ObjectOutputStream)  with a security manager
installed and the policy has not granted java.lang.reflect.ReflectPermission suppressAccessChecks
throws a java.security.AccessControlException.  

java.security.AccessControlException: Access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
	at java.security.AccessController.checkPermission(AccessController.java:95)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:862)
	at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:103)
	at java.io.ObjectStreamClass.findPrivateMethod(ObjectStreamClass.java:1050)
	at java.io.ObjectStreamClass.createClassDesc(ObjectStreamClass.java:303)
	at java.io.ObjectStreamClass.lookupStreamClass(ObjectStreamClass.java:997)
	at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1696)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1639)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1603)
	at org.apache.harmony.luni.tests.java.io.ObjectOutputStreamTest.test_writeObjectWithSecurityManager(ObjectOutputStreamTest.java:1406)

This does not occur on the RI.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message