You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ParameterizedTypeBinding.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -169,10 +169,15 @@ public boolean canBeInstantiated() {
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest_1_8.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6986,7 +6986,7 @@ public void testBug472851() {
6986
6986
"1. ERROR in Test.java (at line 10)\n" +
6987
6987
" test(type);\n" +
6988
6988
" ^^^^\n" +
6989
-
"The method test(List<L>) in the type Test is not applicable for the arguments (List<capture#1-of ? extends List<?>>)\n" +
6989
+
"The method test(List<L>) in the type Test is not applicable for the arguments (List<capture#2-of ? extends List<?>>)\n" +
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest_9.java
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1211,6 +1211,30 @@ public static void main(String[] args) {
1211
1211
"""
1212
1212
});
1213
1213
}
1214
+
publicvoidtestGH4039() {
1215
+
runConformTest(newString[] {
1216
+
"CollectionsSortReproducer.java",
1217
+
"""
1218
+
import java.util.Collection;
1219
+
import java.util.Collections;
1220
+
import java.util.Iterator;
1221
+
import java.util.List;
1222
+
1223
+
public class CollectionsSortReproducer {
1224
+
class Cranberry<T_Value> implements Comparable<Cranberry<T_Value>> {
1225
+
@Override
1226
+
public int compareTo(Cranberry<T_Value> o) { return 0; }
0 commit comments