changeset 19405:5d3b5ec30554

8022178: System.console() throws IOE on some Windows Summary: to remove the IOE throwing code Reviewed-by: alanb
author sherman
date Wed, 14 Aug 2013 11:42:59 -0700
parents 2f9360fd2594
children 10093962bbf3
files jdk/src/windows/native/java/io/Console_md.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 ||