8021977: Opening a file using java.io can throw IOException on Windows
authordxu
Fri, 09 Aug 2013 10:55:52 -0700
changeset 19381 5251302e7dc7
parent 19380 22eefc44fad6
child 19382 fdb8e07fdaee
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
jdk/src/windows/native/java/io/io_util_md.c
--- a/jdk/src/windows/native/java/io/io_util_md.c	Fri Aug 09 17:56:38 2013 +0100
+++ b/jdk/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;
     }