VMClassLoader.java (loadClass): Now native.
* java/lang/VMClassLoader.java (loadClass): Now native. * java/lang/natClassLoader.cc (loadClass): Implement. * prims.cc (_Jv_RunMain): Initialize ClassLoader. From-SVN: r72038
This commit is contained in:
parent
2a3bf9aa52
commit
d801e245eb
4 changed files with 25 additions and 8 deletions
|
@ -142,20 +142,14 @@ final class VMClassLoader
|
|||
/**
|
||||
* Helper to load a class from the bootstrap class loader.
|
||||
*
|
||||
* In libgcj, this does nothing, as the default system loader knows
|
||||
* how to find classes that have been linked in.
|
||||
*
|
||||
* @param name the class name to load
|
||||
* @param resolve whether to resolve it
|
||||
* @return the class, loaded by the bootstrap classloader or null
|
||||
* if the class wasn't found. Returning null is equivalent to throwing
|
||||
* a ClassNotFoundException (but a possible performance optimization).
|
||||
*/
|
||||
static final Class loadClass(String name, boolean resolve)
|
||||
throws ClassNotFoundException
|
||||
{
|
||||
return null;
|
||||
}
|
||||
static final native Class loadClass(String name, boolean resolve)
|
||||
throws ClassNotFoundException;
|
||||
|
||||
/**
|
||||
* Helper to load a resource from the bootstrap class loader.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue