RFR: 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux [v4]

Vyom Tewari vtewari at openjdk.java.net
Wed Jun 1 07:31:33 UTC 2022


On Tue, 31 May 2022 18:29:30 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Modify `sun.net.www.MimeTable.findByFileName(String)` to attempt to find the file extension in the entire file name if it is not found in the portion of the name preceding the optional fragment beginning with a hash (`#`).
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8287237: Simplify code a bit

Looks ok, i tested on centos 7 and it is working as expected.

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

Marked as reviewed by vtewari (Committer).

PR: https://git.openjdk.java.net/jdk/pull/8909


More information about the nio-dev mailing list