提交 6b462c30 编写于 作者: S serb

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

Reviewed-by: pchelko, azvegint
上级 71f9e8eb
/*
* 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.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -44,9 +44,10 @@ Java_java_awt_Dimension_initIDs(JNIEnv *env, jclass cls) {
TRY;
AwtDimension::widthID = env->GetFieldID(cls, "width", "I");
AwtDimension::heightID = env->GetFieldID(cls, "height", "I");
DASSERT(AwtDimension::widthID != NULL);
CHECK_NULL(AwtDimension::widthID);
AwtDimension::heightID = env->GetFieldID(cls, "height", "I");
DASSERT(AwtDimension::heightID != NULL);
CATCH_BAD_ALLOC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册