1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/java/openjdk7/files/patch-src-solaris-classes-sun-nio-fs-BsdFileSystemProvider.java
Greg Lewis e2f338bdce . Allow users to force the file system provider to be the BSD file system
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
2013-03-27 03:06:50 +00:00

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);