Correctly processing inherited methods when checking for SAM interface.

This commit is contained in:
Evgeny Gerashchenko
2013-06-14 20:06:01 +04:00
parent 63c17bd0b2
commit 8e49eb135a
7 changed files with 139 additions and 15 deletions
@@ -1218,6 +1218,16 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/Runnable.java");
}
@TestMetadata("SamSubinterfaceOfTwo.java")
public void testSamSubinterfaceOfTwo() throws Exception {
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/SamSubinterfaceOfTwo.java");
}
@TestMetadata("SamSubinterfaceOverridding.java")
public void testSamSubinterfaceOverridding() throws Exception {
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/SamSubinterfaceOverridding.java");
}
@TestMetadata("SubstitutedSamInterface.java")
public void testSubstitutedSamInterface() throws Exception {
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/SubstitutedSamInterface.java");