DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4870>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4870 class cast exception when reporting test results Summary: class cast exception when reporting test results Product: Ant Version: 1.4 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In XMLJUnitFormatter.java and PlainJUnitFormatter.java is a bug, which throws ClassCastException when running tests implementing directly junit.framework.Test interface. In method startTest instead of: currentTest.setAttribute(ATTR_NAME, ((TestCase) t).name()); there should be something like this: if (t instanceof TestCase) { currentTest.setAttribute(ATTR_NAME, ((TestCase) t).name()); } else { currentTest.setAttribute(ATTR_NAME, ("Unknown"); } The same thing also applies to the plain text formatter. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
