8036780: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Dimension.cpp
Reviewed-by: pchelko, azvegint
--- a/jdk/src/windows/native/sun/windows/awt_Dimension.cpp Thu Mar 06 22:33:21 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Dimension.cpp Fri Mar 07 19:45:56 2014 +0400
@@ -1,5 +1,5 @@
/*
- * 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 @@
TRY;
AwtDimension::widthID = env->GetFieldID(cls, "width", "I");
- AwtDimension::heightID = env->GetFieldID(cls, "height", "I");
+ DASSERT(AwtDimension::widthID != NULL);
+ CHECK_NULL(AwtDimension::widthID);
- DASSERT(AwtDimension::widthID != NULL);
+ AwtDimension::heightID = env->GetFieldID(cls, "height", "I");
DASSERT(AwtDimension::heightID != NULL);
CATCH_BAD_ALLOC;