Archie Cobbs wrote: > I'm adapting JCVM to work with a totally unmodified Classpath, but > doing so seems to cause an infinite loop in Mauve test > gnu.testlet.java.util.logging.Logger.getAnonymousLogger. > > The infinite loop is simple: > > Class.getClassLoader() invokes > VMStackWalker.getCallingClassLoader() > VMStackWalker.getCallingClassLoader() invokes > Class.getClassLoader() > > It would be nice if VMStackWalker.getCallingClassLoader() could > invoke VMClass.getClassLoader(), but access permissions prevent that. > > Any ideas? One idea is to move VMStackWalker into java.lang.
We can't do that, it needs to be public. I guess that VMStackWalker should have a native method to get the class loader from a Class. Regards, Jeroen _______________________________________________ Classpath mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath

