aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/Runtime.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/Runtime.java')
-rw-r--r--libjava/java/lang/Runtime.java19
1 files changed, 6 insertions, 13 deletions
diff --git a/libjava/java/lang/Runtime.java b/libjava/java/lang/Runtime.java
index baf1ae5..94e7770 100644
--- a/libjava/java/lang/Runtime.java
+++ b/libjava/java/lang/Runtime.java
@@ -94,18 +94,8 @@ public class Runtime
s.checkLink(lib);
}
- public synchronized void load (String pathname)
- {
- checkLink (pathname);
- // FIXME.
- throw new UnsatisfiedLinkError ("Runtime.load not implemented");
- }
- public synchronized void loadLibrary (String libname)
- {
- checkLink (libname);
- // FIXME.
- throw new UnsatisfiedLinkError ("Runtime.loadLibrary not implemented");
- }
+ public native void load (String pathname);
+ public native void loadLibrary (String libname);
public native void runFinalization ();
@@ -122,10 +112,13 @@ public class Runtime
public native void traceInstructions (boolean on);
public native void traceMethodCalls (boolean on);
+ // A helper for the constructor.
+ private final native void init ();
+
// The sole constructor.
private Runtime ()
{
- finalize_on_exit = false;
+ init ();
}
// Private data.