From e8bda8d8b76797d6b6a3bfa346340f4069ba539d Mon Sep 17 00:00:00 2001 From: dxu Date: Fri, 9 Aug 2013 10:55:52 -0700 Subject: [PATCH] 8021977: Opening a file using java.io can throw IOException on Windows Summary: Remove IOException related error-handling code for backward compatibility Reviewed-by: alanb, lancea, mr --- src/windows/native/java/io/io_util_md.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/windows/native/java/io/io_util_md.c b/src/windows/native/java/io/io_util_md.c index d886aea9f..55e962537 100644 --- a/src/windows/native/java/io/io_util_md.c +++ b/src/windows/native/java/io/io_util_md.c @@ -251,12 +251,6 @@ winFileHandleOpen(JNIEnv *env, jstring path, int flags) free(pathbuf); if (h == INVALID_HANDLE_VALUE) { - int error = GetLastError(); - if (error == ERROR_TOO_MANY_OPEN_FILES) { - JNU_ThrowByName(env, JNU_JAVAIOPKG "IOException", - "Too many open files"); - return -1; - } throwFileNotFoundException(env, path); return -1; } -- GitLab