start of new file
[IRC.git] / Robust / src / IR / TypeUtil.java
index dae65785924414ee91e8a8b5d1cd89bd5f177b7e..92e4e5861b45b6483e7a1dedf14b70ef882ff5df 100644 (file)
@@ -30,6 +30,9 @@ public class TypeUtil {
            String superc=cd.getSuper();
            if (superc!=null) {
                ClassDescriptor cd_super=getClass(superc);
+               if (cd_super==null) {
+                   throw new Error("Couldn't find class:"+superc);
+               }
                supertable.put(cd,cd_super);
            }
        }
@@ -118,6 +121,9 @@ public class TypeUtil {
                 /* Is this more specific than bestmd */
             }
         }
+       if (bestmd==null)
+           throw new Error("Could find: "+name + " in "+cd);
+
        return bestmd;
     }