Revision: 10042
Author:   [email protected]
Date:     Wed Apr 20 09:30:36 2011
Log: 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

http://code.google.com/p/google-web-toolkit/source/detail?r=10042

Modified:
 /trunk/user/src/com/google/gwt/junit/JUnitShell.java

=======================================
--- /trunk/user/src/com/google/gwt/junit/JUnitShell.java Tue Apr 5 03:08:39 2011 +++ /trunk/user/src/com/google/gwt/junit/JUnitShell.java Wed Apr 20 09:30:36 2011
@@ -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);
   }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to