mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -29,6 +29,8 @@ import java.io.*;
|
|||
import java.net.*;
|
||||
import java.util.Map;
|
||||
import java.security.*;
|
||||
|
||||
import jdk.internal.util.StaticProperty;
|
||||
import sun.security.action.GetPropertyAction;
|
||||
|
||||
/**
|
||||
|
@ -403,7 +405,7 @@ final class SunEntries {
|
|||
if(deviceURI.isOpaque()) {
|
||||
// File constructor does not accept opaque URI
|
||||
URI localDir = new File(
|
||||
System.getProperty("user.dir")).toURI();
|
||||
StaticProperty.userDir()).toURI();
|
||||
String uriPath = localDir.toString() +
|
||||
deviceURI.toString().substring(5);
|
||||
return new File(URI.create(uriPath));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue