8230104: JNU_IsInstanceOfByName needs const parameter

Reviewed-by: alanb, rriggs
This commit is contained in:
Andrew Luo 2019-08-23 15:24:26 -04:00 committed by Roger Riggs
parent ce3face998
commit 4ab1119494
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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.