[jdk25u-dev] RFR: 8366261: Provide utility methods for sun.security.util.Password

Goetz Lindenmaier goetz at openjdk.org
Mon Jan 26 07:06:09 UTC 2026


I backport this for parity with 25.0.3-oracle.

Change applies clean, but needs adaptions to compile, see extra commit.

25 has not static properties for the encodings. So I just omit that.

25 lacks https://bugs.openjdk.org/browse/JDK-8361972: "Clarify the condition of System.console() about standard input/output". Therefore we need a meaningful implementation of isTerminal().

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

Commit messages:
 - fix build??
 - backport a12e9fcebda1d7b75cb892e7920333d73fb5de9c

Changes: https://git.openjdk.org/jdk25u-dev/pull/178/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=178&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8366261
  Stats: 107 lines in 6 files changed: 81 ins; 0 del; 26 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/178.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/178/head:pull/178

PR: https://git.openjdk.org/jdk25u-dev/pull/178


More information about the jdk-updates-dev mailing list