1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/java/openjdk8/files/patch-jdk-src-solaris-classes-sun-nio-fs-BsdFileSystemProvider.java
Jung-uk Kim aa8f38c3b6 Add a port of OpenJDK8.
Submitted by:	Brian Gardner <openjdk@getsnappy.com> (preliminary version)
2014-03-28 22:11:29 +00:00

31 lines
1.0 KiB
Java

--- jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java
+++ jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java
@@ -26,6 +26,7 @@
package sun.nio.fs;
import java.nio.file.*;
+import java.nio.file.spi.FileSystemProvider;
import java.nio.file.spi.FileTypeDetector;
import java.io.IOException;
import java.security.AccessController;
@@ -40,6 +41,10 @@
super();
}
+ public BsdFileSystemProvider(FileSystemProvider f) {
+ super();
+ }
+
@Override
BsdFileSystem newFileSystem(String dir) {
return new BsdFileSystem(this, dir);
@@ -54,7 +59,7 @@
FileTypeDetector getFileTypeDetector() {
Path userMimeTypes = Paths.get(AccessController.doPrivileged(
new GetPropertyAction("user.home")), ".mime.types");
- Path etcMimeTypes = Paths.get("/etc/mime.types");
+ Path etcMimeTypes = Paths.get("%%LOCALBASE%%/etc/mime.types");
return chain(new GnomeFileTypeDetector(),
new MimeTypesFileTypeDetector(userMimeTypes),