Skip to content
Permalink
Browse files

8231790: Provide better FileSystemProviders

Reviewed-by: alanb, skoivu, rhalade
  • Loading branch information
Brian Burkhalter committed Oct 10, 2019
1 parent be35f9e commit 68c5b95b1307b5e3a0708590f7fcf9ce06bbd0b4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/java.base/share/classes/java/nio/file/Files.java
@@ -3348,6 +3348,8 @@ public static String readString(Path path, Charset cs) throws IOException {
Objects.requireNonNull(cs);

byte[] ba = readAllBytes(path);
if (path.getClass().getModule() != Object.class.getModule())
ba = ba.clone();
return JLA.newStringNoRepl(ba, cs);
}

0 comments on commit 68c5b95

Please sign in to comment.