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. _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath

