Given the changes to the System.console() behavior, where it no longer returns null when a write pipe is connected to the Java process, keytool needs to be updated to determine whether an interactive terminal is attached.
------------- Commit messages: - 8339347: keytool -importpass insists prompting the user even if there is no terminal - 8339347: keytool -importpass insists prompting the user even if there is no terminal Changes: https://git.openjdk.org/jdk/pull/20855/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20855&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8339347 Stats: 51 lines in 2 files changed: 49 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/20855.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20855/head:pull/20855 PR: https://git.openjdk.org/jdk/pull/20855