fix bugs for some missing exceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2588 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
e9f3eb3eaa
commit
995975db78
|
@ -120,6 +120,10 @@ public class ClassBasedInstanceKeys implements InstanceKeyFactory {
|
|||
* @return a set of ConcreteTypeKeys that represent the exceptions the PEI may throw.
|
||||
*/
|
||||
public InstanceKey getInstanceKeyForPEI(CGNode node, ProgramCounter peiLoc, TypeReference type) {
|
||||
IClass klass = cha.lookupClass(type);
|
||||
if (klass == null) {
|
||||
return null;
|
||||
}
|
||||
return new ConcreteTypeKey(cha.lookupClass(type));
|
||||
}
|
||||
|
||||
|
|
|
@ -395,6 +395,9 @@ public abstract class SSAPropagationCallGraphBuilder extends PropagationCallGrap
|
|||
TypeReference type = it2.next();
|
||||
if (type != null) {
|
||||
InstanceKey ik = getInstanceKeyForPEI(node, peiLoc, type, instanceKeyFactory);
|
||||
if (ik == null) {
|
||||
continue;
|
||||
}
|
||||
if (Assertions.verifyAssertions) {
|
||||
if (!(ik instanceof ConcreteTypeKey)) {
|
||||
Assertions._assert(ik instanceof ConcreteTypeKey,
|
||||
|
|
Loading…
Reference in New Issue