--- old/src/java.desktop/unix/native/common/awt/awt_Font.c 2015-03-04 18:16:31.000000000 +0300 +++ new/src/java.desktop/unix/native/common/awt/awt_Font.c 2015-03-04 18:16:31.000000000 +0300 @@ -84,12 +84,10 @@ (JNIEnv *env, jclass cls) { #ifndef HEADLESS - /** We call "NoClientCode" methods because they won't invoke client - code on the privileged toolkit thread **/ CHECK_NULL(fontIDs.pData = (*env)->GetFieldID(env, cls, "pData", "J")); CHECK_NULL(fontIDs.style = (*env)->GetFieldID(env, cls, "style", "I")); CHECK_NULL(fontIDs.size = (*env)->GetFieldID(env, cls, "size", "I")); - CHECK_NULL(fontIDs.getPeer = (*env)->GetMethodID(env, cls, "getPeer_NoClientCode", + CHECK_NULL(fontIDs.getPeer = (*env)->GetMethodID(env, cls, "getFontPeer", "()Ljava/awt/peer/FontPeer;")); CHECK_NULL(fontIDs.getFamily = (*env)->GetMethodID(env, cls, "getFamily_NoClientCode", "()Ljava/lang/String;"));