Fixed test with method signature change (compile server).

This commit is contained in:
Dmitry Boulytchev
2012-07-19 22:48:57 +04:00
parent b81a5ff17f
commit 714b565acd
2 changed files with 20 additions and 4 deletions
@@ -96,10 +96,9 @@ public class MemberChangeTest extends IncrementalTestCase {
doTest();
}
// todo: fixme
//public void testChangeMethodGenericReturnType() throws Exception {
// doTest();
//}
public void testChangeMethodGenericReturnType() throws Exception {
doTest();
}
public void testDeleteConstructor() throws Exception {
doTest();
@@ -1232,6 +1232,23 @@ public class Mappings {
if (!affected) {
debug("Return type, throws list or signature changed --- affecting method usages");
myUpdated.affectMethodUsages(m, propagated, m.createUsage(myContext, it.name), usages, state.myDependants);
final List<Pair<MethodRepr, ClassRepr>> overridingMethods = new LinkedList<Pair<MethodRepr, ClassRepr>>();
myUpdated.addOverridingMethods(m, it, MethodRepr.equalByJavaRules(m), overridingMethods);
for(final Pair<MethodRepr, ClassRepr> p : overridingMethods) {
final ClassRepr aClass = p.getSecond();
if (aClass != MOCK_CLASS) {
final int fileName = myClassToSourceFile.get(aClass.name);
if (fileName > 0) {
myAffectedFiles.add(new File(myContext.getValue(fileName)));
}
}
}
state.myAffectedUsages.addAll(usages);
}
}