# HG changeset patch # User azvegint # Date 1395070513 -14400 # Node ID b3ca05d03c64dce24d4f2f5414cac046e5d51673 # Parent 371d2d8dadc941865b8ab0c91f4bc2106324e27d 8036717: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Robot.cpp Reviewed-by: serb, pchelko diff -r 371d2d8dadc9 -r b3ca05d03c64 jdk/src/windows/native/sun/windows/awt_Robot.cpp --- a/jdk/src/windows/native/sun/windows/awt_Robot.cpp Mon Mar 17 19:30:54 2014 +0400 +++ b/jdk/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); }