RFR: 8374555: No need for visible input warning in s.s.u.Password when not reading from System.in

Sean Coffey coffeys at openjdk.org
Tue Jan 6 07:35:40 UTC 2026


On Mon, 5 Jan 2026 22:20:28 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> We should only print out `[WARNING: Input may be visible on screen]` when trying to read password from `System.in`. Don't print it if the password is read from a different URL.

test/jdk/sun/security/util/Password/EmptyIn.java line 36:

> 34:  * @summary only print warning when reading from System.in
> 35:  * @modules java.base/sun.security.util
> 36:  * @library /test/lib

I think this test needs to run in ovm mode given the System in/out modifications

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29051#discussion_r2663940867


More information about the security-dev mailing list