mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
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:
parent
fea09e9cd0
commit
3c30eafbb5
2 changed files with 51 additions and 46 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue