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

Jaikiran Pai jpai at openjdk.java.net
Wed Jun 1 00:46:37 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

Thank you for the changes, Brian. The current PR looks fine to me.

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

Marked as reviewed by jpai (Reviewer).

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


More information about the nio-dev mailing list