changeset 7857:03822f2389bf

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
author dxu
date Fri, 09 Aug 2013 10:55:52 -0700
parents ce1c874903cb
children a7c341f30747
files src/windows/native/java/io/io_util_md.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/java/io/io_util_md.c	Fri Aug 09 17:56:38 2013 +0100
+++ b/src/windows/native/java/io/io_util_md.c	Fri Aug 09 10:55:52 2013 -0700
@@ -251,12 +251,6 @@
     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;
     }