Skip to content

Commit

Permalink
8245456: MacPasteboard throws ClassCastException on static builds
Browse files Browse the repository at this point in the history
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.
Original file line number Diff line number Diff line change
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;");
GLASS_CHECK_EXCEPTION(env);
utfs = (*env)->NewObjectArray(env, (jsize)[items count], jcls, NULL);
GLASS_CHECK_EXCEPTION(env);
Expand Down

0 comments on commit 37b5edc

Please sign in to comment.