- removed responsible
Diamond - no method matches
Issue #173
open
This example causes an error:
Diamond.java:6: error: no method named addAll(java.util.ArrayList<java.lang.Object>) in java.util.Set<java.lang.String> matches. However, there is a method addAll(java.util.Collection<wildcards.? extends java.lang.String>)
import java.util.*;
public class Diamond {
public static void main(String[] args) {
Set<String> hashSet01 = new HashSet<>();
Set<String> hashSet02 = new HashSet<>();
hashSet02.addAll(new ArrayList<>(hashSet01)); // new ArrayList<String>(hashSet01) works
}
}
Comments (3)
-
-
- edited description
- changed status to resolved
This test passes with ExtendJ 8.0.1-168-gef13696 Java SE 8.
Thank you for the test case, I have added it to the regression test suite.
-
- changed status to open
The test fails with the Java 7 build of ExtendJ (passes in the Java 8 build only).
- Log in to comment