Changes from Omer Tripp:

- Null check for fields (allows tolerance of bytecode parser problems)
- Support for determining if a class loader is an application class loader. (needed for cross languages support)


git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3482 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
yinnon_haviv 2009-04-19 14:34:13 +00:00
parent 8cc7e2bd40
commit 1d751fc92f
2 changed files with 546 additions and 537 deletions

View File

@ -28,6 +28,7 @@ import java.util.jar.Manifest;
import com.ibm.wala.classLoader.ArrayClassLoader;
import com.ibm.wala.classLoader.BinaryDirectoryTreeModule;
import com.ibm.wala.classLoader.ClassFileModule;
import com.ibm.wala.classLoader.IClassLoader;
import com.ibm.wala.classLoader.JarFileModule;
import com.ibm.wala.classLoader.Language;
import com.ibm.wala.classLoader.Module;
@ -131,6 +132,10 @@ public class AnalysisScope {
return languages.get(name);
}
public boolean isApplicationLoader(IClassLoader loader) {
return loader.getReference().equals(getLoader(APPLICATION));
}
/**
* Return the information regarding the primordial loader.
*