changeset 9602:7746e4e1912f

8036710: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp Reviewed-by: pchelko, azvegint
author serb
date Wed, 12 Mar 2014 15:51:58 +0400
parents 13e27e75895a
children e956c0bd5fb7
files src/windows/native/sun/windows/awt_ScrollPane.cpp
diffstat 1 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_ScrollPane.cpp	Wed Mar 12 15:43:53 2014 +0400
+++ b/src/windows/native/sun/windows/awt_ScrollPane.cpp	Wed Mar 12 15:51:58 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -600,12 +600,16 @@
 
     AwtScrollPane::scrollbarDisplayPolicyID =
         env->GetFieldID(cls, "scrollbarDisplayPolicy", "I");
+    DASSERT(AwtScrollPane::scrollbarDisplayPolicyID != NULL);
+    CHECK_NULL(AwtScrollPane::scrollbarDisplayPolicyID);
+
     AwtScrollPane::hAdjustableID =
         env->GetFieldID(cls, "hAdjustable", "Ljava/awt/ScrollPaneAdjustable;");
+    DASSERT(AwtScrollPane::hAdjustableID != NULL);
+    CHECK_NULL(AwtScrollPane::hAdjustableID);
+
     AwtScrollPane::vAdjustableID =
         env->GetFieldID(cls, "vAdjustable", "Ljava/awt/ScrollPaneAdjustable;");
-    DASSERT(AwtScrollPane::scrollbarDisplayPolicyID != NULL);
-    DASSERT(AwtScrollPane::hAdjustableID != NULL);
     DASSERT(AwtScrollPane::vAdjustableID != NULL);
 
     CATCH_BAD_ALLOC;
@@ -631,10 +635,11 @@
     TRY;
 
     AwtScrollPane::unitIncrementID = env->GetFieldID(cls,"unitIncrement", "I");
+    DASSERT(AwtScrollPane::unitIncrementID != NULL);
+    CHECK_NULL(AwtScrollPane::unitIncrementID);
+
     AwtScrollPane::blockIncrementID =
         env->GetFieldID(cls,"blockIncrement", "I");
-
-    DASSERT(AwtScrollPane::unitIncrementID != NULL);
     DASSERT(AwtScrollPane::blockIncrementID != NULL);
 
     CATCH_BAD_ALLOC;