Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirlagunov committed Jan 8, 2025
1 parent 45ce9b9 commit f91fb83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/java.base/share/classes/java/io/File.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@
import java.net.URISyntaxException;
import java.nio.file.FileStore;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;

import jdk.internal.misc.VM;
import jdk.internal.util.StaticProperty;
import sun.security.action.GetPropertyAction;

/**
* An abstract representation of file and directory pathnames.
Expand Down Expand Up @@ -168,6 +172,8 @@ public class File
*/
private static enum PathStatus { INVALID, CHECKED };

private static final boolean useNIO = GetPropertyAction.privilegedGetBooleanProp("jbr.java.io.use.nio", true, null);

/**
* The flag indicating whether the file path is invalid.
*/
Expand Down

0 comments on commit f91fb83

Please sign in to comment.