8022178: System.console() throws IOE on some Windows
authorsherman
Wed, 14 Aug 2013 11:42:59 -0700
changeset 19405 5d3b5ec30554
parent 19404 2f9360fd2594
child 19406 10093962bbf3
8022178: System.console() throws IOE on some Windows Summary: to remove the IOE throwing code Reviewed-by: alanb
jdk/src/windows/native/java/io/Console_md.c
--- a/jdk/src/windows/native/java/io/Console_md.c	Wed Aug 14 11:26:32 2013 -0700
+++ b/jdk/src/windows/native/java/io/Console_md.c	Wed Aug 14 11:42:59 2013 -0700
@@ -38,12 +38,10 @@
 {
     if (hStdIn == INVALID_HANDLE_VALUE &&
         (hStdIn = GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) {
-        JNU_ThrowIOExceptionWithLastError(env, "Open Console input failed");
         return JNI_FALSE;
     }
     if (hStdOut == INVALID_HANDLE_VALUE &&
         (hStdOut = GetStdHandle(STD_OUTPUT_HANDLE)) == INVALID_HANDLE_VALUE) {
-        JNU_ThrowIOExceptionWithLastError(env, "Open Console output failed");
         return JNI_FALSE;
     }
     if (GetFileType(hStdIn) != FILE_TYPE_CHAR ||