< prev index next >
langtools/test/tools/javac/api/ToolProvider/ToolProviderTest1.java
Print this page
*** 41,51 ****
// verify that running accessing ToolProvider by itself does not
// trigger loading com.sun.tools.javac.*
public class ToolProviderTest1 {
public static void main(String... args) throws Exception {
if (args.length > 0) {
! System.err.println(Class.forName(args[0], true, null));
return;
}
new ToolProviderTest1().run();
}
--- 41,51 ----
// verify that running accessing ToolProvider by itself does not
// trigger loading com.sun.tools.javac.*
public class ToolProviderTest1 {
public static void main(String... args) throws Exception {
if (args.length > 0) {
! System.err.println(Class.forName(args[0], true, ClassLoader.getSystemClassLoader()));
return;
}
new ToolProviderTest1().run();
}
< prev index next >