changeset 9607:cdb25a970c76

8036717: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Robot.cpp Reviewed-by: serb, pchelko
author azvegint
date Mon, 17 Mar 2014 19:35:13 +0400
parents 9bf152a802af
children 93fdbd0fb4da
files src/windows/native/sun/windows/awt_Robot.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Robot.cpp	Wed Mar 05 16:01:22 2014 +0400
+++ b/src/windows/native/sun/windows/awt_Robot.cpp	Mon Mar 17 19:35:13 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2013, 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
@@ -35,6 +35,7 @@
 {
     JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2);
     m_peerObject = env->NewWeakGlobalRef(peer);
+    JNU_CHECK_EXCEPTION(env);
     JNI_SET_PDATA(peer, this);
 }