changeset 13628:93883f2d74eb

8168417: Pending exceptions in java.base/windows/native/libnio Reviewed-by: chegar, alanb
author prappo
date Fri, 21 Oct 2016 12:31:50 +0100
parents 6b678425fbbb
children 3de016c65a06
files src/windows/native/sun/nio/ch/FileDispatcherImpl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/nio/ch/FileDispatcherImpl.c	Mon Jun 17 17:19:58 2019 +0100
+++ b/src/windows/native/sun/nio/ch/FileDispatcherImpl.c	Fri Oct 21 12:31:50 2016 +0100
@@ -210,6 +210,7 @@
 
     if ((h == INVALID_HANDLE_VALUE) || (result == 0)) {
         JNU_ThrowIOExceptionWithLastError(env, "Write failed");
+        return IOS_THROWN;
     }
 
     return convertReturnVal(env, (jint)written, JNI_FALSE);
@@ -258,6 +259,7 @@
 
     if ((h == INVALID_HANDLE_VALUE) || (result == 0)) {
         JNU_ThrowIOExceptionWithLastError(env, "Write failed");
+        return IOS_THROWN;
     }
 
     return convertLongReturnVal(env, totalWritten, JNI_FALSE);