提交 3a676fcf 编写于 作者: B bagiras

8036788: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Event.cpp

Reviewed-by: pchelko, serb
上级 ae3b395b
/* /*
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -45,12 +45,16 @@ Java_java_awt_Event_initIDs(JNIEnv *env, jclass cls) { ...@@ -45,12 +45,16 @@ Java_java_awt_Event_initIDs(JNIEnv *env, jclass cls) {
TRY; TRY;
AwtEvent::targetID = env->GetFieldID(cls, "target", "Ljava/lang/Object;"); AwtEvent::targetID = env->GetFieldID(cls, "target", "Ljava/lang/Object;");
AwtEvent::xID = env->GetFieldID(cls, "x", "I");
AwtEvent::yID = env->GetFieldID(cls, "y", "I");
DASSERT(AwtEvent::targetID != NULL); DASSERT(AwtEvent::targetID != NULL);
CHECK_NULL(AwtEvent::targetID);
AwtEvent::xID = env->GetFieldID(cls, "x", "I");
DASSERT(AwtEvent::xID != NULL); DASSERT(AwtEvent::xID != NULL);
CHECK_NULL(AwtEvent::xID);
AwtEvent::yID = env->GetFieldID(cls, "y", "I");
DASSERT(AwtEvent::yID != NULL); DASSERT(AwtEvent::yID != NULL);
CHECK_NULL(AwtEvent::yID);
CATCH_BAD_ALLOC; CATCH_BAD_ALLOC;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册