[jdk11u-dev] RFR: 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch
Amos Shi
ashi at openjdk.org
Thu Feb 29 00:13:10 UTC 2024
Backport of [JDK-8320943](https://bugs.openjdk.org/browse/JDK-8320943)
- This PR has two commits
- commit 1 is the backport of the original [commit](https://github.com/openjdk/jdk/commit/87516e29dc5015c4cab2c07c5539ad30f2768667)
- commit 2 is fixing the compile and runtime issue on Java 17.
- Compile issue fixed: on Java 17 the class is `jdk.test.lib.Platform` and `jdk.test.lib.OSVersion`
- Runtime issue fixed: on Java 17 there is no mime `wasm`, so we comment it out
- `wasm` exists in Java 21: https://github.com/openjdk/jdk21u-dev/blob/master/src/java.base/windows/classes/sun/net/www/content-types.properties
- `wasm` does not exists in Java 11: https://github.com/openjdk/jdk11u-dev/blob/master/src/java.base/windows/classes/sun/net/www/content-types.properties
- So this is an unclean back port
Testing
- Local: Test passed on Mac
- `Basic.java` - Test results: passed: 1
Mac machine
MacBook Pro
16-inch, 2021
Chip: Apple M1 Max
MacOS: 14.3.1 (23D60)
Windows machine: (to test)
- Pipeline:
- Testing Machine:
-------------
Commit messages:
- Fix compile and runtime issue on Java 11
- Backport 87516e29dc5015c4cab2c07c5539ad30f2768667
Changes: https://git.openjdk.org/jdk11u-dev/pull/2574/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2574&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8320943
Stats: 65 lines in 1 file changed: 22 ins; 3 del; 40 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/2574.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2574/head:pull/2574
PR: https://git.openjdk.org/jdk11u-dev/pull/2574
More information about the jdk-updates-dev
mailing list