7063986: Wrong JNi method call in font scaler
authorpsadhukhan
Wed, 25 Nov 2015 14:44:29 +0300
changeset 34786 36c3d93671f8
parent 34785 4c5b27d6a6ac
child 34787 36167bbe1a9f
7063986: Wrong JNi method call in font scaler Reviewed-by: prr, rchamyal
jdk/src/java.desktop/share/native/libfontmanager/freetypeScaler.c
--- a/jdk/src/java.desktop/share/native/libfontmanager/freetypeScaler.c	Tue Nov 24 13:36:12 2015 -0800
+++ b/jdk/src/java.desktop/share/native/libfontmanager/freetypeScaler.c	Wed Nov 25 14:44:29 2015 +0300
@@ -258,7 +258,7 @@
                                               scalerInfo->fontData,
                                               scalerInfo->fontDataLength);
             if (bBuffer != NULL) {
-                (*env)->CallObjectMethod(env, font2D,
+                (*env)->CallVoidMethod(env, font2D,
                                    sunFontIDs.readFileMID, bBuffer);
 
                 error = FT_New_Memory_Face(scalerInfo->library,