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:
parent
b377e796f7
commit
8893824d47
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user