RFR: 8359732: Make standard i/o encoding related system properties `StaticProperty` [v4]

Naoto Sato naoto at openjdk.org
Fri Jun 20 18:44:47 UTC 2025


> Refactored the internal handling of `stdin/out/err.encoding` to allow setting them only via command-line options by converting them into `StaticProperty`. This change prevents unexpected behavior caused by applications modifying these properties at runtime using `System.setProperty()`.

Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:

  Reflects review comments. Limits the usage of StaticProperty within java.base

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25860/files
  - new: https://git.openjdk.org/jdk/pull/25860/files/278628b0..0a3684b7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25860&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25860&range=02-03

  Stats: 7 lines in 3 files changed: 0 ins; 2 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/25860.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25860/head:pull/25860

PR: https://git.openjdk.org/jdk/pull/25860


More information about the core-libs-dev mailing list