< prev index next >

src/com/sun/javatest/Script.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

*** 1038,1048 **** PrintWriter out1, PrintWriter out2) { // this is the central place where we get to run what the user // says in the environment file: Command testCommand; try { ! Class c = (loader == null ? Class.forName(className) : loader.loadClass(className)); testCommand = (Command)(c.newInstance()); } catch (ClassCastException e) { return Status.error(i18n.getString("script.cantRunClass", new Object[] { className, Command.class.getName() })); --- 1038,1048 ---- PrintWriter out1, PrintWriter out2) { // this is the central place where we get to run what the user // says in the environment file: Command testCommand; try { ! Class<?> c = (loader == null ? Class.forName(className) : loader.loadClass(className)); testCommand = (Command)(c.newInstance()); } catch (ClassCastException e) { return Status.error(i18n.getString("script.cantRunClass", new Object[] { className, Command.class.getName() }));
< prev index next >