提交 24b96f5f 编写于 作者: D dcherepanov

6866808: nsk/stress/jck12a/jck12a014 crashes with SIGSEGV at [libjvm.so+0xc5b10]

Reviewed-by: art
上级 c2b0011a
......@@ -187,7 +187,9 @@ Java_java_awt_Component_initIDs
"()Ljava/awt/Point;");
keyclass = (*env)->FindClass(env, "java/awt/event/KeyEvent");
DASSERT (keyclass != NULL);
if (JNU_IsNull(env, keyclass)) {
return;
}
componentIDs.isProxyActive =
(*env)->GetFieldID(env, keyclass, "isProxyActive",
......@@ -715,9 +717,11 @@ Window get_xawt_root_shell(JNIEnv *env) {
if (xawt_root_shell == None){
if (classXRootWindow == NULL){
jclass cls_tmp = (*env)->FindClass(env, "sun/awt/X11/XRootWindow");
if (!JNU_IsNull(env, cls_tmp)) {
classXRootWindow = (jclass)(*env)->NewGlobalRef(env, cls_tmp);
(*env)->DeleteLocalRef(env, cls_tmp);
}
}
if( classXRootWindow != NULL) {
methodGetXRootWindow = (*env)->GetStaticMethodID(env, classXRootWindow, "getXRootWindow", "()J");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册