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:
parent
74aaeac399
commit
21225dc6ea
|
@ -212,8 +212,10 @@ public class JdtUtil {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if (kludge.size() == 1) {
|
if (kludge.size() == 1) {
|
||||||
|
System.err.println("Found " + className);
|
||||||
return (IType) kludge.iterator().next();
|
return (IType) kludge.iterator().next();
|
||||||
} else {
|
} else {
|
||||||
|
System.err.println("Failed to find " + className);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,11 +258,12 @@ public class JdtUtil {
|
||||||
METHODS: for (IMethod x : type.getMethods()) {
|
METHODS: for (IMethod x : type.getMethods()) {
|
||||||
if (x.getElementName().equals(name)) {
|
if (x.getElementName().equals(name)) {
|
||||||
if (x.getParameterTypes().length == paramTypes.length) {
|
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 s1 = Signature.getTypeErasure(Signature.getSignatureSimpleName(x.getParameterTypes()[i]));
|
||||||
String s2 = Signature.getTypeErasure(Signature.getSignatureSimpleName(paramTypes[i]));
|
String s2 = Signature.getTypeErasure(Signature.getSignatureSimpleName(paramTypes[i]));
|
||||||
if (typeParameterNames.contains(s1)) {
|
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 {
|
} else {
|
||||||
if (!s1.equals(s2)) {
|
if (!s1.equals(s2)) {
|
||||||
// no match
|
// no match
|
||||||
|
|
Loading…
Reference in New Issue