After calling "System.console().readPassword()", my tty echo setting is unconditionally turned on (sorry, I like "stty -echo").
Of course, java should save and restore the tty settings (see e.g. stty -g)
Linux demo:
$ stty -echo
$ echo ---; stty | grep echo; echo ---; jver 11 keytool -list -cacerts; echo ---; stty | grep echo; echo ---
---
-echo
---
Enter keystore password:
[snip]
---
---
Of course, java should save and restore the tty settings (see e.g. stty -g)
Linux demo:
$ stty -echo
$ echo ---; stty | grep echo; echo ---; jver 11 keytool -list -cacerts; echo ---; stty | grep echo; echo ---
---
-echo
---
Enter keystore password:
[snip]
---
---
- duplicates
-
JDK-8201378 java.io.Console.readPassword always turns echo on upon return
-
- Closed
-
- relates to
-
JDK-8202105 Console echo is disabled when exiting jshell
-
- Closed
-