8154190: Deprivilege java.compiler module

Reviewed-by: alanb, chegar, jjg
This commit is contained in:
Mandy Chung 2016-05-05 16:36:00 -07:00
parent f5b6389682
commit 8c11293294
3 changed files with 63 additions and 13 deletions

View file

@ -43,7 +43,7 @@ import toolbox.ToolBox;
public class ToolProviderTest1 {
public static void main(String... args) throws Exception {
if (args.length > 0) {
System.err.println(Class.forName(args[0], true, null));
System.err.println(Class.forName(args[0], true, ClassLoader.getSystemClassLoader()));
return;
}