8022178: System.console() throws IOE on some Windows
Summary: to remove the IOE throwing code
Reviewed-by: alanb
--- 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 ||