|
|
|
@ -95,7 +95,12 @@ public class ClassInfo extends BinaryInfo { |
|
|
|
|
public final static ClassInfo javaLangObject = forName("java.lang.Object"); |
|
|
|
|
|
|
|
|
|
public static void setClassPath(String path) { |
|
|
|
|
classpath = new SearchPath(path); |
|
|
|
|
setClassPath(new SearchPath(path)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void setClassPath(SearchPath path) { |
|
|
|
|
if (classpath != path) { |
|
|
|
|
classpath = path; |
|
|
|
|
Iterator i = classes.iterator(); |
|
|
|
|
while (i.hasNext()) { |
|
|
|
|
ClassInfo ci = (ClassInfo) i.next(); |
|
|
|
@ -107,6 +112,7 @@ public class ClassInfo extends BinaryInfo { |
|
|
|
|
ci.removeAllAttributes(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static boolean exists(String name) { |
|
|
|
|
return classpath.exists(name.replace('.', '/') + ".class"); |
|
|
|
@ -240,7 +246,7 @@ public class ClassInfo extends BinaryInfo { |
|
|
|
|
int outerPtr = 0; |
|
|
|
|
String lastOuterName = getName(); |
|
|
|
|
for (int i = count - extraCount - outerCount; |
|
|
|
|
i < count && lastOuterName != null; i++) { |
|
|
|
|
i < count; i++) { |
|
|
|
|
InnerClassInfo ici = innerClassInfo[i]; |
|
|
|
|
|
|
|
|
|
/* If we counted correctly there is no NullPointer |
|
|
|
|