mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
e2f338bdce
provider. This is helpful when users also wish to force os.name to a different value (e.g. Linux) but not being forced to also use the Linux file system provider. This can be done by defining the property java.nio.file.spi.DefaultFileSystemProvider. This patch differs from the submitters in that the range of values are restricted to the current known defaults. PR: 173847 Submitted by: 4721 at hushmail.com
22 lines
537 B
Java
22 lines
537 B
Java
--- jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java.orig
|
|
+++ jdk/src/solaris/classes/sun/nio/fs/BsdFileSystemProvider.java
|
|
@@ -27,6 +27,7 @@
|
|
|
|
import java.nio.file.*;
|
|
import java.nio.file.attribute.*;
|
|
+import java.nio.file.spi.FileSystemProvider;
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
@@ -38,6 +39,10 @@
|
|
super();
|
|
}
|
|
|
|
+ public BsdFileSystemProvider(FileSystemProvider f) {
|
|
+ super();
|
|
+ }
|
|
+
|
|
@Override
|
|
BsdFileSystem newFileSystem(String dir) {
|
|
return new BsdFileSystem(this, dir);
|