some verbose messages for temp. debugging

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1157 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2007-05-21 16:19:37 +00:00
parent 74aaeac399
commit 21225dc6ea
1 changed files with 5 additions and 2 deletions

View File

@ -212,8 +212,10 @@ public class JdtUtil {
e.printStackTrace();
}
if (kludge.size() == 1) {
System.err.println("Found " + className);
return (IType) kludge.iterator().next();
} else {
System.err.println("Failed to find " + className);
return null;
}
@ -256,11 +258,12 @@ public class JdtUtil {
METHODS: for (IMethod x : type.getMethods()) {
if (x.getElementName().equals(name)) {
if (x.getParameterTypes().length == paramTypes.length) {
for (int i = 0; i < x.getParameterTypes().length ; i++) {
for (int i = 0; i < x.getParameterTypes().length; i++) {
String s1 = Signature.getTypeErasure(Signature.getSignatureSimpleName(x.getParameterTypes()[i]));
String s2 = Signature.getTypeErasure(Signature.getSignatureSimpleName(paramTypes[i]));
if (typeParameterNames.contains(s1)) {
// s1 is a type parameter to the class. optimistically assume the types match.
// s1 is a type parameter to the class. optimistically assume
// the types match.
} else {
if (!s1.equals(s2)) {
// no match