mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8290313: Produce warning when user specified java.io.tmpdir directory doesn't exist
Reviewed-by: rriggs, naoto, coffeys
This commit is contained in:
parent
086763a629
commit
8df3bc4ec5
4 changed files with 140 additions and 4 deletions
|
@ -35,7 +35,7 @@ import java.nio.file.Path;
|
|||
import java.security.SecureRandom;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import sun.security.action.GetPropertyAction;
|
||||
import jdk.internal.util.StaticProperty;
|
||||
|
||||
/**
|
||||
* An abstract representation of file and directory pathnames.
|
||||
|
@ -1986,8 +1986,8 @@ public class File
|
|||
private TempDirectory() { }
|
||||
|
||||
// temporary directory location
|
||||
private static final File tmpdir = new File(
|
||||
GetPropertyAction.privilegedGetProperty("java.io.tmpdir"));
|
||||
private static final File tmpdir = new File(StaticProperty.javaIoTmpDir());
|
||||
|
||||
static File location() {
|
||||
return tmpdir;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue