[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Loading native libraries
From: |
Jeroen Frijters |
Subject: |
RE: Loading native libraries |
Date: |
Fri, 4 Jun 2004 08:56:24 +0200 |
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