6988037: fileClose prints debug message is close fails
Reviewed-by: kevinw, forax
--- a/jdk/src/solaris/native/java/io/io_util_md.c Sat Sep 25 12:00:05 2010 -0700
+++ b/jdk/src/solaris/native/java/io/io_util_md.c Thu Sep 30 14:48:25 2010 +0100
@@ -83,8 +83,6 @@
close(devnull);
}
} else if (JVM_Close(fd) == -1) {
- SET_FD(this, fd, fid); // restore fd
- printf("JVM_Close returned -1\n");
- JNU_ThrowIOExceptionWithLastError(env, "close failed");
+ JNU_ThrowIOExceptionWithLastError(env, "close failed");
}
}
--- a/jdk/src/windows/native/java/io/io_util_md.c Sat Sep 25 12:00:05 2010 -0700
+++ b/jdk/src/windows/native/java/io/io_util_md.c Thu Sep 30 14:48:25 2010 +0100
@@ -531,7 +531,6 @@
SET_FD(this, -1, fid);
if (CloseHandle(h) == 0) { /* Returns zero on failure */
- SET_FD(this, fd, fid); // restore fd
JNU_ThrowIOExceptionWithLastError(env, "close failed");
}
return 0;