classpath
[Top][All Lists]
Advanced

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

RE: Use of VMSecurityManager.getClassContext()


From: David Holmes
Subject: RE: Use of VMSecurityManager.getClassContext()
Date: Fri, 19 Mar 2004 07:55:46 +1000

> Jeroen Frijters wrote:
> Andrew Haley wrote:
> > David Holmes writes:
> >  >    static native Class getClassFromContext(int pos);
> >
> > This seems like a reasonable idea.  In several cases we need to say
> > "who is our caller?" and some VM assistance is useful here.
>
> I'd like to have a special case getCallerClass. If you grep through the
> Classpath source, virtually all uses of getClassContext are interested
> in the immediate caller.

That was my initial thought but the generalization is trivial and useful.
For example, given the XXX/VMxxx split having only getCallerClass wouldn't
allow XXX to defer to VMxxx and have VMxxx find the real caller.

David Holmes





reply via email to

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