: From: "John Keiser" <[EMAIL PROTECTED]>
: Date: Mon, 25 Jan 1999 10:59:34 -0700
:
: Throwable I plan to move into the VM Integration API pretty soon.
: gnu.vm.stack.* will go away. It's been on my plate for a while, but I
: haven't gotten around to it. I'll see about it Wed. night, and make sure
: everything still works (I believe it will work without any changes to
: Japhar).
I'm currently using gnu.vm.stack.StackTrace in
java.util.ResourceBundle, to get the ClassLoader of the calling method
(which might be the system class loader). SUN JDK uses a native
method getClassContext() for this.
Some suggestion how this should be solved? I think
VMSecurityManager.getClassContext() does what I need, but it is not
accessible. (I could extend SecurityManager in an inner class, to use
getClassContext, but this isn't nice.)
BTW: SecurityManager.getClassContext() seems to be wrong. The call of
VMSecurityManager.getClassContext() changes the stack frame and the
returned array should be `shifted' by one.
Jochen