8201179: Regression due loading java.nio.charset.StandardCharsets during bootstrap

Reviewed-by: sherman, martin
This commit is contained in:
Claes Redestad 2018-04-10 16:16:34 +02:00
parent 370977cf4f
commit c40af49970
7 changed files with 33 additions and 16 deletions

View file

@ -609,7 +609,7 @@ public abstract class Charset
if (cs != null)
defaultCharset = cs;
else
defaultCharset = StandardCharsets.UTF_8;
defaultCharset = sun.nio.cs.UTF_8.INSTANCE;
}
}
return defaultCharset;