changeset 2966:04d9b09dbef9

6988037: fileClose prints debug message is close fails Reviewed-by: kevinw, forax
author alanb
date Thu, 30 Sep 2010 14:48:25 +0100
parents 4b0fdb9f7cfe
children 1fe397df4aaa
files src/solaris/native/java/io/io_util_md.c src/windows/native/java/io/io_util_md.c
diffstat 2 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/io/io_util_md.c	Sat Sep 25 12:00:05 2010 -0700
+++ b/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/src/windows/native/java/io/io_util_md.c	Sat Sep 25 12:00:05 2010 -0700
+++ b/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;