On Fri, 2 Dec 2022 08:18:35 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> If the console cannot be used anyway inside jshell, then this is good enough. > > Naoto has confirmed that the password prompt from keytool does not echo, good! > > The intention is that Console be usable in jshell so I think the issue is > that readPassword is echo'ing when used in jshell. Maybe someone > experimenting with the Console API might run into this but we can separate > out that issue. Still not sure what the expected behavior is, but for keytool, because of the updated check, `sun.security.util.Password` now uses `System.in.read` instead of `Console.readPassword`, therefore the password is echoing. I tried removing the check and force `Console.readPassword` to be called. There is no echo but the return key also does not work. I have to Ctrl-C to break out. ------------- PR: https://git.openjdk.org/jdk/pull/11421