classpath
[Top][All Lists]
Advanced

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

RE: Infinite loop


From: Jeroen Frijters
Subject: RE: Infinite loop
Date: Wed, 9 Nov 2005 18:26:58 +0100

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




reply via email to

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