Making sure `restoreEcho` correctly reflects the state in the shutdown thread, which differs from the application's thread that issues the `readPassword()` method.
------------- Commit messages: - initial commit Changes: https://git.openjdk.org/jdk/pull/19184/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19184&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8332084 Stats: 7 lines in 1 file changed: 2 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/19184.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19184/head:pull/19184 PR: https://git.openjdk.org/jdk/pull/19184