testdata for javac resolution order: to be merged in java 9 update

This commit is contained in:
Anna.Kozlova
2017-04-11 16:20:35 +02:00
parent 5430f8b5ac
commit c917f02b47
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.logging.Logger;
class MyTest
{
private final static Logger LOGGER = Logger.getLogger(MyTest.class.getName());
public static void test(List<List<String>> testList) {
testList.forEach( MyTest.bind(MyTest.cast(LOGGER::info), iterable -> ""));
}
private static <A1, A2> TestConsumer<A1, A2> bind(Consumer<? super A2> delegate, Function<A1, A2> function) {
return null;
}
private static <C1> Consumer<C1> cast(Consumer<C1> consumer)
{
return consumer;
}
private interface TestConsumer<T1, T2> extends Consumer<T1> { }
}

View File

@@ -178,6 +178,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest();
}
public void testTopLevelParentNoParameters() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}