aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-30 15:57:37 +0200
committerSven Gothel <[email protected]>2020-09-30 15:57:37 +0200
commite0423f7c5ef7db84d43bfb774db4123091cc87e4 (patch)
tree80bfc9d214424a1dd4691dda4b72785ad7f26200
parent5ec9081932989a8a299c122de712387c22bdd5e2 (diff)
JNI helper_base.cxx: Fix ArrayList class name, drop decorating 'L' and ';'
-rw-r--r--java/jni/helper_base.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jni/helper_base.cxx b/java/jni/helper_base.cxx
index 344a722..d30ba9f 100644
--- a/java/jni/helper_base.cxx
+++ b/java/jni/helper_base.cxx
@@ -167,7 +167,7 @@ jobject get_bluetooth_type(JNIEnv *env, const char *field_name)
jobject get_new_arraylist(JNIEnv *env, unsigned int size, jmethodID *add)
{
- jclass arraylist_class = search_class(env, "Ljava/util/ArrayList;");
+ jclass arraylist_class = search_class(env, "java/util/ArrayList");
jmethodID arraylist_ctor = search_method(env, arraylist_class, "<init>", "(I)V", false);
jobject result = env->NewObject(arraylist_class, arraylist_ctor, size);