mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8066709: Make some JDK system properties read only
Reviewed-by: lancea, sundar, bchristi, weijun, mchung, alanb, mullan
This commit is contained in:
parent
cad47f4a03
commit
4098f2560a
25 changed files with 215 additions and 46 deletions
|
@ -25,6 +25,8 @@
|
|||
|
||||
package sun.nio.fs;
|
||||
|
||||
import jdk.internal.util.StaticProperty;
|
||||
|
||||
import java.nio.file.*;
|
||||
import java.nio.file.attribute.*;
|
||||
import java.nio.channels.*;
|
||||
|
@ -259,7 +261,7 @@ abstract class UnixFileStore
|
|||
|
||||
private static Properties loadProperties() {
|
||||
Properties result = new Properties();
|
||||
String fstypes = System.getProperty("java.home") + "/lib/fstypes.properties";
|
||||
String fstypes = StaticProperty.javaHome() + "/lib/fstypes.properties";
|
||||
Path file = Path.of(fstypes);
|
||||
try {
|
||||
try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue