RFR: 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch [v2]
Andrey Turbanov
aturbanov at openjdk.org
Sat Dec 2 19:46:39 UTC 2023
On Fri, 1 Dec 2023 19:28:26 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> If Windows 11+ is detected, add an extra expected MIME type for certain file extensions.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8320943: Change exTypes to a list and add certain EXType records conditionally on whether it is Windows 11+
test/jdk/java/nio/file/Files/probeContentType/Basic.java line 183:
> 181: exTypes.add(new ExType("png", List.of("image/png")));
> 182: exTypes.add(new ExType("ppt", List.of("application/vnd.ms-powerpoint")));
> 183: exTypes.add(new ExType("pptx",List.of("application/vnd.openxmlformats-officedocument.presentationml.presentation")));
Suggestion:
exTypes.add(new ExType("pptx", List.of("application/vnd.openxmlformats-officedocument.presentationml.presentation")));
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16916#discussion_r1412860860
More information about the nio-dev
mailing list