Another case identified where spam reduction reduced too much and didn't print a relavent error message. Review at http://gwt-code-reviews.appspot.com/1420805 git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10042 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/junit/JUnitShell.java b/user/src/com/google/gwt/junit/JUnitShell.java index 9778086..d20427c 100644 --- a/user/src/com/google/gwt/junit/JUnitShell.java +++ b/user/src/com/google/gwt/junit/JUnitShell.java
@@ -735,14 +735,10 @@ if (unit == null) { errMsg = "The test class '" + typeName + "' was not found in module '" + moduleName + "'; no compilation unit for that type was seen"; - } else if (unit.isError()) { + } else { CompilationProblemReporter.logMissingTypeErrorWithHints(logger, typeName, compilationState); errMsg = "The test class '" + typeName + "' had compile errors; check log for details"; - } else { - errMsg = "Unexpected error: the test class '" - + typeName - + "' appears to be valid, but no corresponding type was found in TypeOracle; please contact GWT support"; } return new JUnitFatalLaunchException(errMsg); }