classpath
[Top][All Lists]
Advanced

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

RE: Use of VMSecurityManager.getClassContext()


From: Andrew Haley
Subject: RE: Use of VMSecurityManager.getClassContext()
Date: Fri, 19 Mar 2004 09:45:13 +0000

David Holmes writes:
 > > 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.

Perhaps we don't need to defer to VMxxx if we have a portable way to
do getCallerClass.

Andrew.




reply via email to

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