Skip to content

Commit

Permalink
8230104: JNU_IsInstanceOfByName needs const parameter
Browse files Browse the repository at this point in the history
Reviewed-by: alanb, rriggs
  • Loading branch information
andrewluotechnologies authored and Roger Riggs committed Aug 23, 2019
1 parent ce3face commit 4ab1119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/java.base/share/native/libjava/jni_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/native/libjava/jni_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4ab1119

Please sign in to comment.