[jdk11u-dev] Integrated: 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch

Amos Shi ashi at openjdk.org
Fri Mar 15 08:27:41 UTC 2024


On Thu, 29 Feb 2024 00:08:48 GMT, Amos Shi <ashi at openjdk.org> wrote:

> 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 
>     - ✅ after [JDK-8297609](https://bugs.openjdk.org/browse/JDK-8297609) back ported to 17, `wasm` will be available
> - So this is an unclean back port from jdk original commit
> - Well it is **clean** against `jdk17u-dev`
>   - https://github.com/openjdk/jdk17u-dev/pull/2254
> 
> 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:
> 
> 
> Device name	W-PW05T4AD
> Processor	12th Gen Intel(R) Core(TM) i7-12800H   2.40 GHz
> Installed RAM	64.0 GB (63.7 GB usable)
> System type	64-bit operating system, x64-based processor
> 
> 
> - Pipeline: All checks have passed
> - Testing Machine: SAP nightlies passed on `2024-03-01,03`

This pull request has now been integrated.

Changeset: 7ed3c3ef
Author:    Amos Shi <ashi at openjdk.org>
Committer: Goetz Lindenmaier <goetz at openjdk.org>
URL:       https://git.openjdk.org/jdk11u-dev/commit/7ed3c3ef2c70f83fdb35561fc2d6cb5d4814a606
Stats:     65 lines in 1 file changed: 22 ins; 3 del; 40 mod

8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch

Backport-of: 27cf2f404857aa8c3b1679d0e67f0a3a37e7604b

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

PR: https://git.openjdk.org/jdk11u-dev/pull/2574


More information about the jdk-updates-dev mailing list