In prior JDK releases, There are cases where `System.console()` may return a Console instance even when the JVM is not attached to a terminal. This may confuse users in case inputs are not coming from the keyboard, or outputs are not displayed on the display (such as redirected from/to file/pipe), especially for `readPassword` method. In JDK25, the default behavior has been modified to return null in case the stdin and/or stdout is redirected, but still there are cases if JLine based Console implementation is specified via the sytem property.
- relates to
-
JDK-8354469 Keytool exposes the password in plain text when command is piped using | grep
-
- In Progress
-