提交 7bd8dff2 编写于 作者: P pchelko

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

Reviewed-by: anthony, serb
上级 b941e194
/* /*
* Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 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
...@@ -95,7 +95,9 @@ Java_sun_awt_DefaultMouseInfoPeer_fillPointWithCoords(JNIEnv *env, jclass cls, j ...@@ -95,7 +95,9 @@ Java_sun_awt_DefaultMouseInfoPeer_fillPointWithCoords(JNIEnv *env, jclass cls, j
env->DeleteLocalRef(pointClassLocal); env->DeleteLocalRef(pointClassLocal);
} }
xID = env->GetFieldID(pointClass, "x", "I"); xID = env->GetFieldID(pointClass, "x", "I");
CHECK_NULL_RETURN(xID, (jint)0);
yID = env->GetFieldID(pointClass, "y", "I"); yID = env->GetFieldID(pointClass, "y", "I");
CHECK_NULL_RETURN(yID, (jint)0);
env->SetIntField(point, xID, pt.x); env->SetIntField(point, xID, pt.x);
env->SetIntField(point, yID, pt.y); env->SetIntField(point, yID, pt.y);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册