Revision: 9334
Author: [email protected]
Date: Wed Dec  1 12:10:45 2010
Log: make computeAllInterfaces resilient to errors in dependendant compilation units

Review at http://gwt-code-reviews.appspot.com/1168801

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9334

Modified:
/trunk/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteSingleJsoImplDispatches.java

=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteSingleJsoImplDispatches.java Tue Jun 22 10:07:56 2010 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteSingleJsoImplDispatches.java Wed Dec 1 12:10:45 2010
@@ -222,8 +222,14 @@
     List<JClassType> q = new LinkedList<JClassType>();
JClassType intf = typeOracle.findType(intfName.replace('/', '.').replace(
         '$', '.'));
-    assert intf != null : "Could not find interface " + intfName;
-    q.add(intf);
+
+    /*
+ * If the interface's compilation unit wasn't retained due to an error, then
+     * it won't be available in the typeOracle for us to rewrite
+     */
+    if (intf != null) {
+      q.add(intf);
+    }

     while (!q.isEmpty()) {
       intf = q.remove(0);

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

Reply via email to