From 4f9f55bf8176ffbe75c958a93e1cc47c70f50e89 Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Thu, 3 Jul 2014 10:53:03 +0100 Subject: Fix incorrect syntax for class names in JNI. Causes a crash on Android L/ART. --- platform/android/jni/mupdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/android') diff --git a/platform/android/jni/mupdf.c b/platform/android/jni/mupdf.c index b9578d44..ca13cc64 100644 --- a/platform/android/jni/mupdf.c +++ b/platform/android/jni/mupdf.c @@ -1537,7 +1537,7 @@ JNI_FN(MuPDFCore_addMarkupAnnotationInternal)(JNIEnv * env, jobject thiz, jobjec float zoom = glo->resolution / 72; zoom = 1.0 / zoom; fz_scale(&ctm, zoom, zoom); - pt_cls = (*env)->FindClass(env, "android.graphics.PointF"); + pt_cls = (*env)->FindClass(env, "android/graphics/PointF"); if (pt_cls == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "FindClass"); x_fid = (*env)->GetFieldID(env, pt_cls, "x", "F"); if (x_fid == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "GetFieldID(x)"); @@ -1610,7 +1610,7 @@ JNI_FN(MuPDFCore_addInkAnnotationInternal)(JNIEnv * env, jobject thiz, jobjectAr float zoom = glo->resolution / 72; zoom = 1.0 / zoom; fz_scale(&ctm, zoom, zoom); - pt_cls = (*env)->FindClass(env, "android.graphics.PointF"); + pt_cls = (*env)->FindClass(env, "android/graphics/PointF"); if (pt_cls == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "FindClass"); x_fid = (*env)->GetFieldID(env, pt_cls, "x", "F"); if (x_fid == NULL) fz_throw(ctx, FZ_ERROR_GENERIC, "GetFieldID(x)"); -- cgit v1.2.3