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
Detect when any explicit type argument is a raw type
Adds regression test testGH4957 reproducing the Comparator.comparing + raw Comparable scenario (issue #4957) and asserting the expected warnings/errors.
With this fix testGH4957 passes.
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ParameterizedGenericMethodBinding.java
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
* Bug 434483 - [1.8][compiler][inference] Type inference not picked up with method reference
27
27
* Bug 446442 - [1.8] merge null annotations from super methods
28
28
* Bug 457079 - Regression: type inference
29
+
* Christoph Rueger GH4957 - ECJ compiles fine but Java does not: unchecked conversion
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest_9.java
+62Lines changed: 62 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2295,6 +2295,68 @@ public static <T> Iterable<T> concat(Iterable<? extends Iterable<? extends T>> e
"Type safety: The method thenComparing(Function) belongs to the raw type Comparator. References to generic type Comparator<T> should be parameterized\n" +
0 commit comments