-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b72
-
os_x
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8135984 | emb-9 | Brian Burkhalter | P4 | Resolved | Fixed | team |
The content type probe mechanism depends on the existence of user.home/.mime.types which does not in general exist on Mac OS X unless expressly created by the user. Hence the return value "contentType" of
Path path;
String contentType = Files.probeContentType(path);
will be null.
Path path;
String contentType = Files.probeContentType(path);
will be null.
- backported by
-
JDK-8135984 (fs) Files.probeContentType returns null on Mac OS X
-
- Resolved
-
- relates to
-
JDK-8129633 (fs) Investigate removing the GNOME-based FileTypeDetector from the Linux and Solaris implementations
-
- Closed
-
-
JDK-8080369 (fs) Files.probeContentType returns null on Windows
-
- Closed
-