Archie Cobbs wrote:
> > I think we desperately need a VMClassLoader.getCallerClassLoader()
> 
> But what the semantics of this method? I.e., define the "caller".
> 
> For example, would it return the same thing for both of these 
> call traces?
> 
>   Foo.method -> Runtime.loadLibrary()
>   Foo.method -> System.loadLibrary() -> Runtime.loadLibrary()

No magic. It always returns the caller. We would simply modify
System.loadLibrary to call Runtime.loadLibraryImpl(String libname,
ClassLoader loader) (or whatever).

Regards,
Jeroen


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to