diff --git a/src/java.base/share/classes/java/io/ProxyingConsole.java b/src/java.base/share/classes/java/io/ProxyingConsole.java index 1babceb665fa9..37db2d2b3a9a2 100644 --- a/src/java.base/share/classes/java/io/ProxyingConsole.java +++ b/src/java.base/share/classes/java/io/ProxyingConsole.java @@ -110,11 +110,11 @@ public Console print(Object obj) { */ @Override public String readln(String prompt) { - synchronized (writeLock) { +// synchronized (writeLock) { synchronized (readLock) { return delegate.readln(prompt); } - } +// } } /** @@ -168,11 +168,11 @@ public String readLine(String format, Object ... args) { */ @Override public String readLine(Locale locale, String format, Object ... args) { - synchronized (writeLock) { +// synchronized (writeLock) { synchronized (readLock) { return delegate.readLine(locale, format, args); } - } +// } } /** @@ -198,11 +198,11 @@ public char[] readPassword(String format, Object ... args) { */ @Override public char[] readPassword(Locale locale, String format, Object ... args) { - synchronized (writeLock) { +// synchronized (writeLock) { synchronized (readLock) { return delegate.readPassword(locale, format, args); } - } +// } } /**