[jdk8u-dev] RFR: 8146215: (fs) java/nio/file/Files/probeContentType/Basic.java failed frequently on Solaris-sparc with Unexpected type: text/plain

Alex Kasko akasko at openjdk.java.net
Wed Apr 20 21:01:13 UTC 2022


Backport of a NIO fix.

Original commit on jdk9: https://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/44bb7c7997ca

Patch does not apply cleanly, differences from original commit: paths reshuffling, copyright year in
AbstractFileTypeDetector.java, list of issues numbers changed and checkOSXContentTypes() function removed in Basic.java test.

Related mailing list threads:

https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-June/012050.html
https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-October/014321.html

Testing:

 - [x] jtreg:java/nio/file/Files/
 - [x] jtreg:java/net/URLConnection/

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

Commit messages:
 - 8146215: (fs) java/nio/file/Files/probeContentType/Basic.java failed frequently on Solaris-sparc with Unexpected type: text/plain

Changes: https://git.openjdk.java.net/jdk8u-dev/pull/44/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk8u-dev&pr=44&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8146215
  Stats: 90 lines in 3 files changed: 40 ins; 37 del; 13 mod
  Patch: https://git.openjdk.java.net/jdk8u-dev/pull/44.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk8u-dev pull/44/head:pull/44

PR: https://git.openjdk.java.net/jdk8u-dev/pull/44


More information about the jdk8u-dev mailing list