提交 ddce5a0e 编写于 作者: A alexsch

8036787: [parfait] JNI exc. pending in jdk/src/windows/native/sun/windows/awt_Object.cpp

Reviewed-by: serb, pchelko
上级 dad6d335
......@@ -232,22 +232,31 @@ Java_sun_awt_windows_WObjectPeer_initIDs(JNIEnv *env, jclass cls) {
TRY;
AwtObject::wObjectPeerClass = (jclass)env->NewGlobalRef(cls);
DASSERT(AwtObject::wObjectPeerClass != NULL);
CHECK_NULL(AwtObject::wObjectPeerClass);
AwtObject::pDataID = env->GetFieldID(cls, "pData", "J");
DASSERT(AwtObject::pDataID != NULL);
CHECK_NULL(AwtObject::pDataID);
AwtObject::destroyedID = env->GetFieldID(cls, "destroyed", "Z");
DASSERT(AwtObject::destroyedID != NULL);
CHECK_NULL(AwtObject::destroyedID);
AwtObject::targetID = env->GetFieldID(cls, "target",
"Ljava/lang/Object;");
DASSERT(AwtObject::targetID != NULL);
CHECK_NULL(AwtObject::targetID);
AwtObject::getPeerForTargetMID =
env->GetStaticMethodID(cls, "getPeerForTarget",
"(Ljava/lang/Object;)Lsun/awt/windows/WObjectPeer;");
DASSERT(AwtObject::getPeerForTargetMID != NULL);
CHECK_NULL(AwtObject::getPeerForTargetMID);
AwtObject::createErrorID = env->GetFieldID(cls, "createError", "Ljava/lang/Error;");
DASSERT(AwtObject::pDataID != NULL);
DASSERT(AwtObject::destroyedID != NULL);
DASSERT(AwtObject::targetID != NULL);
DASSERT(AwtObject::getPeerForTargetMID != NULL);
DASSERT(AwtObject::createErrorID != NULL);
CHECK_NULL(AwtObject::createErrorID);
CATCH_BAD_ALLOC;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册