[jdk21u-dev] RFR: 8366261: Provide utility methods for sun.security.util.Password
Goetz Lindenmaier
goetz at openjdk.org
Thu Feb 19 07:57:54 UTC 2026
src/java.base/share/classes/java/io/Console.java
Resolved several chunks
* import
* isTerminal() does not exist in 21, omitted.
* two chunks need to be implemented differently: replace istty() by the two
new methods.
* place new methods in file
src/java.base/share/classes/jdk/internal/io/JdkConsoleImpl.java
Resolved because https://bugs.openjdk.org/browse/JDK-8330276: "Console methods with explicit Locale" is not in 21.
src/java.base/unix/native/libjava/Console_md.c
src/java.base/windows/native/libjava/Console_md.c
test/jdk/java/io/Console/ModuleSelectionTest.java
Trivial resolves.
Further I needed adaptions to make it compile, see extra commit.
-------------
Commit messages:
- replace StableValue
- make it compile
- backport b0a520657d980f14b86afe6027dc0ebd34afef8f
Changes: https://git.openjdk.org/jdk21u-dev/pull/2616/files
Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2616&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8366261
Stats: 119 lines in 6 files changed: 95 ins; 0 del; 24 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/2616.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2616/head:pull/2616
PR: https://git.openjdk.org/jdk21u-dev/pull/2616
More information about the jdk-updates-dev
mailing list