[jdk11u-dev] RFR: 8337506: Disable "best-fit" mapping on Windows command line
Ekaterina Vergizova
evergizova at openjdk.org
Mon Jul 14 16:13:23 UTC 2025
I'd like to backport this for parity with 11.0.29-oracle.
CSR JDK-8349538 has been approved for 11u.
17u patch applies cleanly, but the test requires a few modifications to work properly:
- replaced `native.encoding` property with `file.encoding`, as `native.encoding` is not present in 11u.
These two are identical unless `file.encoding` is overridden on the command line:
https://github.com/openjdk/jdk17u-dev/blob/master/src/java.base/share/classes/jdk/internal/util/SystemProps.java#L72
- replaced `"str".formatted(args)` with `String.format("str", args)`, as String::formatted() is not available in 11u. Both methods produce the same result.
The new test passes successfully after applying the patch.
-------------
Commit messages:
- Backport 94f8a744e03d7cbe6527e35b0df6ffc33c29ff06
Changes: https://git.openjdk.org/jdk11u-dev/pull/3062/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3062&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8337506
Stats: 104 lines in 2 files changed: 102 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/3062.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3062/head:pull/3062
PR: https://git.openjdk.org/jdk11u-dev/pull/3062
More information about the jdk-updates-dev
mailing list