Skip to content


Browse files Browse the repository at this point in the history
8245456: MacPasteboard throws ClassCastException on static builds
Reviewed-by: kcr
  • Loading branch information
Jose Pereda authored and kevinrushforth committed May 20, 2020
1 parent 6e03930 commit 37b5edc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -459,7 +459,7 @@ static inline jobject createUTF(JNIEnv *env, NSString *data) {
NSArray *items = [pasteboard pasteboardItems];
if ([items count] > 0)
jclass jcls = (*env)->FindClass(env, "java/lang/Object");
jclass jcls = (*env)->FindClass(env, "[Ljava/lang/String;");
utfs = (*env)->NewObjectArray(env, (jsize)[items count], jcls, NULL);
Expand Down

0 comments on commit 37b5edc

Please sign in to comment.