Changes so that internally on the analysis side, classesnames are still package1...
[IRC.git] / Robust / src / IR / TypeUtil.java
index 4fa3412c63b2dd5d67f029387cb05315a7277f17..50f6863909c19f7f8e04a145da46eedcedb42db1 100644 (file)
@@ -43,11 +43,11 @@ public class TypeUtil {
   }
 
   public void addNewClass(String cl, Set todo) {
+    System.out.println("I'm looking for "+cl.replace(".", "/"));
     //search through the default locations for the file.
     for (int i = 0; i < state.classpath.size(); i++) {
       String path = (String) state.classpath.get(i);
-      //The name has ___________ to separate out packages
-      File f = new File(path, cl.replaceAll("___________", "/") + ".java");
+      File f = new File(path, cl.replace('.', '/') + ".java");
       if (f.exists()) {
         try {
           ParseNode pn = Main.readSourceFile(state, f.getCanonicalPath());