re PR libgcj/18234 (System property java.library.path doesn't get used by System.loadLibrary())
PR libgcj/18234
* java/lang/Runtime.java (static): Call init().
(Runtime): Remove call to init().
(init): Make static.
From-SVN: r89902
This commit is contained in:
committed by
Mark Wielaard
parent
0ef2c525e5
commit
5dc8952e24
@@ -111,6 +111,7 @@ public class Runtime
|
||||
|
||||
static
|
||||
{
|
||||
init();
|
||||
insertSystemProperties(defaultProperties);
|
||||
}
|
||||
|
||||
@@ -151,7 +152,6 @@ public class Runtime
|
||||
// work.
|
||||
libpath = new String[0];
|
||||
|
||||
init ();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -709,10 +709,10 @@ public class Runtime
|
||||
native boolean loadLibraryInternal(String libname);
|
||||
|
||||
/**
|
||||
* A helper for the constructor which does some internal native
|
||||
* A helper for Runtime static initializer which does some internal native
|
||||
* initialization.
|
||||
*/
|
||||
private native void init ();
|
||||
private static native void init ();
|
||||
|
||||
/**
|
||||
* Map a system-independent "short name" to the full file name, and append
|
||||
|
||||
Reference in New Issue
Block a user