changeset 9263:abe3cd42c95d

8036782: [parfait] JNI exc. pending in jdk/src/windows/native/sun/windows/awt_MouseEvent.cpp Reviewed-by: pchelko, serb
author bagiras
date Wed, 19 Mar 2014 21:08:35 +0400
parents a0933e5ae013
children 93321455734a
files src/windows/native/sun/windows/awt_MouseEvent.cpp
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_MouseEvent.cpp	Wed Mar 19 18:46:37 2014 +0400
+++ b/src/windows/native/sun/windows/awt_MouseEvent.cpp	Wed Mar 19 21:08:35 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2001, 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;
 
     AwtMouseEvent::xID = env->GetFieldID(cls, "x", "I");
-    AwtMouseEvent::yID = env->GetFieldID(cls, "y", "I");
-    AwtMouseEvent::buttonID = env->GetFieldID(cls, "button", "I");
+    DASSERT(AwtMouseEvent::xID != NULL);
+    CHECK_NULL(AwtMouseEvent::xID);
 
-    DASSERT(AwtMouseEvent::xID != NULL);
+    AwtMouseEvent::yID = env->GetFieldID(cls, "y", "I");
     DASSERT(AwtMouseEvent::yID != NULL);
+    CHECK_NULL(AwtMouseEvent::yID);
+
+    AwtMouseEvent::buttonID = env->GetFieldID(cls, "button", "I");
     DASSERT(AwtMouseEvent::buttonID != NULL);
+    CHECK_NULL(AwtMouseEvent::buttonID);
 
     CATCH_BAD_ALLOC;
 }