On Wed, 10 Sep 2025 15:43:52 GMT, Weijun Wang <wei...@openjdk.org> wrote:
> Allow password hiding even if there is no `System.console`. A manual test is > included. src/java.base/share/classes/sun/security/util/Password.java line 158: > 156: c2 = null; > 157: charset = null; > 158: } Can be simplified as: c2 = JdkConsoleImpl.passwordConsole().orElse(null); charset = (c2 != null) ? c2.charset() : null; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27196#discussion_r2337290982