classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about serialization


From: Bryce McKinlay
Subject: Re: question about serialization
Date: Mon, 4 Aug 2003 11:53:16 +1200


On Saturday, Aug 2, 2003, at 01:46 Pacific/Auckland, David P Grove wrote:

Hi Tom,

        We've had security manager checks in the reflection code in Jikes RVM for a while.  Our current workaround for serialization is that classes loaded by the system classloader are always allowed access.  This is probably too big of a hole, but it does work in practice.  The key routine for us is in java.lang.reflect.JikesRVMSupport (appended below).   If you come up with a finer-grained fix for libgcj, let me know -- I'm not that happy with what we are currently doing in Jikes RVM.


AccessibleObject.setAccessible() is the correct way for serialization to get access to private reflection data. See:

http://java.sun.com/j2se/1.4.2/docs/guide/reflection/reflection.html

Regards

Bryce.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]