# HG changeset patch # User bagiras # Date 1394792613 -14400 # Node ID d15f601414116226915ef8b4be2df2184c116926 # Parent f4f882f0056bba65e79a24bdb35549644cb863dc 8036788: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Event.cpp Reviewed-by: serb, pchelko diff -r f4f882f0056b -r d15f60141411 jdk/src/windows/native/sun/windows/awt_Event.cpp --- a/jdk/src/windows/native/sun/windows/awt_Event.cpp Thu Mar 13 16:29:26 2014 -0700 +++ b/jdk/src/windows/native/sun/windows/awt_Event.cpp Fri Mar 14 14:23:33 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 @@ -45,12 +45,16 @@ TRY; AwtEvent::targetID = env->GetFieldID(cls, "target", "Ljava/lang/Object;"); - AwtEvent::xID = env->GetFieldID(cls, "x", "I"); - AwtEvent::yID = env->GetFieldID(cls, "y", "I"); + DASSERT(AwtEvent::targetID != NULL); + CHECK_NULL(AwtEvent::targetID); - DASSERT(AwtEvent::targetID != NULL); + AwtEvent::xID = env->GetFieldID(cls, "x", "I"); DASSERT(AwtEvent::xID != NULL); + CHECK_NULL(AwtEvent::xID); + + AwtEvent::yID = env->GetFieldID(cls, "y", "I"); DASSERT(AwtEvent::yID != NULL); + CHECK_NULL(AwtEvent::yID); CATCH_BAD_ALLOC; }