8021977: Opening a file using java.io can throw IOException on Windows

Remove IOException related error-handling code for backward compatibility

Reviewed-by: alanb, lancea, mr
This commit is contained in:
Dan Xu 2013-08-09 10:55:52 -07:00
parent b377e796f7
commit 8893824d47

View File

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