RFR: 8295803: Console should be usable in jshell and other environments [v2]
Weijun Wang
weijun at openjdk.org
Thu Dec 1 16:11:12 UTC 2022
On Thu, 1 Dec 2022 15:49:30 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> src/java.base/share/classes/sun/security/util/Password.java line 63:
>>
>>> 61: // readPassword returns "" if you just press ENTER with the built-in Console,
>>> 62: // to be compatible with old Password class, change to null
>>> 63: if (consoleEntered == null || consoleEntered.length == 0) {
>>
>> @wangweij Would you have cycles to build with this change to see that keytool is okay?
>
> Sure. Trying out now...
I can still see the password on screen. Here `in` is a `jdk.jshell.execution.Util` so the updated check on line 58 above failed.
-------------
PR: https://git.openjdk.org/jdk/pull/11421
More information about the core-libs-dev
mailing list