FreeBSD Bugzilla – Attachment 129795 Details for
Bug 173847
[patch] java/openjdk7: force filesystemprovider to bsd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
openjdk7.txt
openjdk7.txt (text/plain), 1.40 KB, created by
r4721@tormail.org
on 2013-01-20 18:00:54 UTC
(
hide
)
Description:
openjdk7.txt
Filename:
MIME Type:
Creator:
r4721@tormail.org
Created:
2013-01-20 18:00:54 UTC
Size:
1.40 KB
patch
obsolete
>Index: files/patch-z-filesystem >=================================================================== >--- files/patch-z-filesystem (revision 0) >+++ files/patch-z-filesystem (working copy) >@@ -0,0 +1,34 @@ >+--- jdk/src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java.orig >++++ jdk/src/solaris/classes/sun/nio/fs/DefaultFileSystemProvider.java >+@@ -64,6 +64,10 @@ >+ public static FileSystemProvider create() { >+ String osname = AccessController >+ .doPrivileged(new GetPropertyAction("os.name")); >++ String propValue = System >++ .getProperty("java.nio.file.spi.DefaultFileSystemProvider"); >++ if (propValue != null) >++ return createProvider(propValue); >+ if (osname.equals("SunOS")) >+ return createProvider("sun.nio.fs.SolarisFileSystemProvider"); >+ if (osname.equals("Linux")) >+--- 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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 173847
:
129794
| 129795