# HG changeset patch # User serb # Date 1394625118 -14400 # Node ID 3e4345c48d3f4c3eee4c8d013a25bf751dac64d9 # Parent 46b619cade6c41a80f9c7adf766de6d74feedfb1 8036710: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp Reviewed-by: pchelko, azvegint diff -r 46b619cade6c -r 3e4345c48d3f jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp --- a/jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp Wed Mar 12 15:43:53 2014 +0400 +++ b/jdk/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;