commit-classpath
[Top][All Lists]
Advanced

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

Re: [patch #3174] Default implementation of VMAccessController.getStack


From: Casey Marshall
Subject: Re: [patch #3174] Default implementation of VMAccessController.getStack
Date: Thu, 01 Jul 2004 00:18:26 -0700
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

>>>>> "Jeroen" == Jeroen Frijters <address@hidden> writes:

Jeroen> Casey Marshall wrote:
>> I assumed that a reference implementation should illustrate what
>> the method needs to do, not simply be empty. Besides, this method
>> will succeed if the host VM can guarantee that Class.forName will
>> reliably return already-loaded classes by name (I'm not sure how
>> feasible this is. From my understanding of class loaders it should
>> be possible to provide this guarantee, even if a pluggable loader
>> is used).

Jeroen> There is no reliable way to turn a class name into a Class
Jeroen> object, without knowing the ClassLoader.

Ok. In that case I think a trivial, but secure, default implementation
would be preferable.

A simple `return new Object[] { new Class[0], new String[0] }' should
do the trick, once I submit a patch to fix AccessControlContext (it
currently does not check for an empty context properly).

-- 
Casey Marshall || address@hidden




reply via email to

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