8230104: JNU_IsInstanceOfByName needs const parameter
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
ce3face998
commit
4ab1119494
@ -1096,7 +1096,7 @@ JNU_GetEnv(JavaVM *vm, jint version)
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
JNU_IsInstanceOfByName(JNIEnv *env, jobject object, char* classname)
|
||||
JNU_IsInstanceOfByName(JNIEnv *env, jobject object, const char* classname)
|
||||
{
|
||||
jclass cls;
|
||||
if ((*env)->EnsureLocalCapacity(env, 1) < 0)
|
||||
|
@ -208,7 +208,7 @@ JNU_NewObjectByName(JNIEnv *env, const char *class_name,
|
||||
* has been thrown.
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
JNU_IsInstanceOfByName(JNIEnv *env, jobject object, char *classname);
|
||||
JNU_IsInstanceOfByName(JNIEnv *env, jobject object, const char *classname);
|
||||
|
||||
|
||||
/* Get or set class and instance fields.
|
||||
|
Loading…
x
Reference in New Issue
Block a user