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

Brian Burkhalter bpb at openjdk.java.net
Tue May 31 18:29:30 UTC 2022


> 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

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8909/files
  - new: https://git.openjdk.java.net/jdk/pull/8909/files/7c877f9e..b9eb7bbb

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8909&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8909&range=02-03

  Stats: 12 lines in 1 file changed: 0 ins; 4 del; 8 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8909.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8909/head:pull/8909

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


More information about the nio-dev mailing list