changeset 12027:71d35c0e608c

8064470: JNI exception pending in jdk/src/java/base/unix/native/libjava/FileDescriptor_md.c Reviewed-by: alanb, chegar, dfuchs Contributed-by: vyom.tewari@oracle.com
author dfuchs
date Tue, 01 Sep 2015 15:34:58 +0200
parents a24b5788e238
children c7af4e4f6050
files src/solaris/native/java/io/FileDescriptor_md.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/io/FileDescriptor_md.c	Wed Feb 25 19:36:29 2015 +0000
+++ b/src/solaris/native/java/io/FileDescriptor_md.c	Tue Sep 01 15:34:58 2015 +0200
@@ -23,9 +23,11 @@
  * questions.
  */
 
+#include "jni.h"
+#include "jni_util.h"
 #include "jvm.h"
+
 #include "io_util_md.h"
-
 #include "java_io_FileDescriptor.h"
 
 /*******************************************************************/
@@ -41,7 +43,7 @@
 
 JNIEXPORT void JNICALL
 Java_java_io_FileDescriptor_initIDs(JNIEnv *env, jclass fdClass) {
-    IO_fd_fdID = (*env)->GetFieldID(env, fdClass, "fd", "I");
+    CHECK_NULL(IO_fd_fdID = (*env)->GetFieldID(env, fdClass, "fd", "I"));
 }
 
 /**************************************************************