Commit in lcsim/src/org/lcsim/job on MAIN | |||
JobControlManager.java | +1 | -2 | 1.2 -> 1.3 |
JM: use newInstance instead of Constructor so no arg ctor is used automatically
diff -u -r1.2 -r1.3 --- JobControlManager.java 10 Sep 2008 20:53:31 -0000 1.2 +++ JobControlManager.java 10 Sep 2008 21:06:52 -0000 1.3 @@ -163,8 +163,7 @@
beaninfo = java.beans.Introspector.getBeanInfo(driverClass); // create a new instance of this driver
- constructor = driverClass.getConstructors()[0]; - newDriver = (Driver)constructor.newInstance(null);
+ newDriver = (Driver)driverClass.newInstance();
} catch (Exception x) { throw new RuntimeException(x); }