Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > jdk
changeset 9262:a0933e5ae013
8036788: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Event.cpp
Reviewed-by: pchelko, serb
author | bagiras |
---|---|
date | Wed, 19 Mar 2014 18:46:37 +0400 |
parents | 4df843ea9fb7 |
children | abe3cd42c95d |
files | src/windows/native/sun/windows/awt_Event.cpp |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Event.cpp Fri Feb 21 16:55:25 2014 +0400 +++ b/src/windows/native/sun/windows/awt_Event.cpp Wed Mar 19 18:46:37 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; }