add context for another Arrays method

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2315 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2008-01-08 18:27:26 +00:00
parent eb9268fc91
commit e4d890cb77
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,7 @@ public class ContainerContextSelector implements ContextSelector {
private final static TypeReference Arrays = TypeReference.findOrCreate(ClassLoaderReference.Primordial, "Ljava/util/Arrays");
private final static MethodReference ArraysAsList = MethodReference.findOrCreate(Arrays, "asList", "([Ljava/lang/Object;)Ljava/util/List;");
private final static MethodReference ArraysCopyOfRange = MethodReference.findOrCreate(Arrays, "copyOfRange", "([CII)[C");
/**
* The governing class hierarchy.
@ -125,6 +126,9 @@ public class ContainerContextSelector implements ContextSelector {
if (m.equals(ArraysAsList)) {
return true;
}
if (m.equals(ArraysCopyOfRange)) {
return true;
}
return false;
}