RFR: 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch [v2]
Roger Riggs
rriggs at openjdk.org
Fri Dec 1 19:51:59 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+
Looks good; the use of List<ExType> makes it easier to customize.
The tests here are just of the code that is using system APIs to map from extension to type.
It doesn't need to verify every entry in the OS's database. Just a sampling and any special cases.
-------------
Marked as reviewed by rriggs (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16916#pullrequestreview-1760464921
PR Comment: https://git.openjdk.org/jdk/pull/16916#issuecomment-1836680960
More information about the nio-dev
mailing list