VMClassLoader.java (getVMClassLoader): New method.
* gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New method. (redirect): New static field. * java/lang/ClassLoader.java (getSystemClassLoader): Now native (getVMClassLoader0): Removed. * java/lang/natClassLoader.cc (getVMClassLoader0): Removed. (redirect): Removed. (getSystemClassLoader): Implemented. From-SVN: r30075
This commit is contained in:
parent
35c95c5a65
commit
4b84737d47
4 changed files with 30 additions and 14 deletions
|
@ -34,13 +34,7 @@ public abstract class ClassLoader {
|
|||
return parent;
|
||||
}
|
||||
|
||||
private static native ClassLoader getVMClassLoader0 ();
|
||||
|
||||
static public ClassLoader getSystemClassLoader () {
|
||||
if (system == null)
|
||||
system = getVMClassLoader0 ();
|
||||
return system;
|
||||
}
|
||||
public static native ClassLoader getSystemClassLoader ();
|
||||
|
||||
/**
|
||||
* Creates a <code>ClassLoader</code> with no parent.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue