In testRunnerImpl this method has some problems in java 5:
private Test getTestSuite(Class testClass) {
try {
Method suiteMethod = testClass.getMethod("suite",
new Class[0]);
try {
// this line gets
misinterpreted as varargs
return (Test) (suiteMethod.invoke(null, new Class[0]));
// static method
} catch (Exception e) {
println("Could not invoke the suite() method");
System.exit(-1);
return null;//can never happen because of
System.exit(-1); but compiler doesn't realise that
}
} catch (Exception e) {
// try to extract a test suite automatically
return new TestSuite(testClass);
}
}
Logged In: NO
Patch at http://sourceforge.net/tracker/index.php?func=detail&aid=1741983&group_id=23959&atid=380053