changeset 56077:7ae075afc72f

8230104: JNU_IsInstanceOfByName needs const parameter Reviewed-by: alanb, rriggs Contributed-by: andrewluotechnologies@outlook.com
author rriggs
date Fri, 23 Aug 2019 15:24:26 -0400
parents 36f5e20be69a
children 2d2c2428bf52
files src/java.base/share/native/libjava/jni_util.c src/java.base/share/native/libjava/jni_util.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libjava/jni_util.c	Fri Aug 23 19:55:08 2019 +0100
+++ b/src/java.base/share/native/libjava/jni_util.c	Fri Aug 23 15:24:26 2019 -0400
@@ -1096,7 +1096,7 @@
 }
 
 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)
--- a/src/java.base/share/native/libjava/jni_util.h	Fri Aug 23 19:55:08 2019 +0100
+++ b/src/java.base/share/native/libjava/jni_util.h	Fri Aug 23 15:24:26 2019 -0400
@@ -208,7 +208,7 @@
  * 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.