6864003: Modify JVM_FindClassFromBootLoader to return null if class not found

JVM_FindClassFromBootLoader returns null if class not found

Reviewed-by: acorn, alanb, dholmes
This commit is contained in:
Mandy Chung 2009-07-27 09:06:22 -07:00
parent fea09e9cd0
commit 3c30eafbb5
2 changed files with 51 additions and 46 deletions

View file

@ -390,15 +390,10 @@ JVM_FindClassFromClassLoader(JNIEnv *env, const char *name, jboolean init,
jobject loader, jboolean throwError);
/*
* Find a class from a boot class loader. Throw ClassNotFoundException
* or NoClassDefFoundError depending on the value of the last
* argument. This is the same as FindClassFromClassLoader but provided
* as a convenience method exported correctly on all platforms for
* JSR 277 launcher class loading.
* Find a class from a boot class loader. Returns NULL if class not found.
*/
JNIEXPORT jclass JNICALL
JVM_FindClassFromBootLoader(JNIEnv *env, const char *name,
jboolean throwError);
JVM_FindClassFromBootLoader(JNIEnv *env, const char *name);
/*
* Find a class from a given class.