eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
92 stars 95 forks source link

ECJ fails to compile method invocation while javac successfully compiles #1591

Open coehlrich opened 3 weeks ago

coehlrich commented 3 weeks ago
    public void test() {
        Supplier<? extends List<? extends Serializable>> supplier = () -> null;

    public <T, V extends Serializable> void error(List<V> v2) {}

ECJ fails to compile with the message The method error(List<V>) in the type Outer is not applicable for the arguments (capture#1-of ? extends List<? extends Serializable>) whereas javac successfully compiles the method.

jukzi commented 2 weeks ago

probably related to