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
--- 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;
}