Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 不明确的方法调用Intellij15_Java_Intellij Idea - Fatal编程技术网

Java 不明确的方法调用Intellij15

Java 不明确的方法调用Intellij15,java,intellij-idea,Java,Intellij Idea,我有两种重载方法: protected final <L extends List<D>> ResponseEntity<L> convertAndRespond(final Iterable<E> sources, final Class<L> dataListClass) { ... } protected final <L extends List<D>> ResponseEntity<L>

我有两种重载方法:

protected final <L extends List<D>> ResponseEntity<L> convertAndRespond(final Iterable<E> sources, final Class<L> dataListClass) { ... }

protected final <L extends List<D>> ResponseEntity<L> convertAndRespond(final Page<E> sources, final Class<L> dataListClass) { ... }
IntelliJ在这里给了我编译错误:不明确的方法调用 虽然我的应用程序构建和运行得很好。可能是什么问题


有趣的是,以前的IntelliJ 14没有显示任何编译问题。IntelliJ告诉您,编译器可以选择任何一种方法来运行。毕竟,类页面是可编辑的


这可能取决于您为IntelliJ选择的编译器,但无论如何,这都是一个等待发生的错误。

我使用的是Project SDK(Java 1.8.0.25),语言级别为8,只要编译正确,这就是正确的代码。我对Intellij15也有这个问题。
convertAndRespond(page, A.class);