Record special name lookup when trying use interface as a SAM

It was already working in JPS, because it see our synthetic classes
as subclasses for SAM's, but with non-JPS build we have to manually
tracking places that should be recompiled after SAM members are changed
This commit is contained in:
Denis Zharkov
2017-11-07 12:34:48 +03:00
parent ae6421476d
commit df533053f9
24 changed files with 193 additions and 8 deletions
@@ -1230,11 +1230,23 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
doTest(fileName);
}
@TestMetadata("methodAddedSamAdapter")
public void testMethodAddedSamAdapter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/samConversions/methodAddedSamAdapter/");
doTest(fileName);
}
@TestMetadata("methodSignatureChanged")
public void testMethodSignatureChanged() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/samConversions/methodSignatureChanged/");
doTest(fileName);
}
@TestMetadata("methodSignatureChangedSamAdapter")
public void testMethodSignatureChangedSamAdapter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("jps-plugin/testData/incremental/withJava/javaUsedInKotlin/samConversions/methodSignatureChangedSamAdapter/");
doTest(fileName);
}
}
}