mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
jdk7 incompatibility: red good code is green: always check signature erasure equals for jdk7 (IDEA-66311)
add checks for param erasure for jdk6
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import java.util.*;
|
||||
|
||||
class ErasureTest {
|
||||
<error descr="'toArrayDouble(List<? extends Number>)' clashes with 'toArrayDouble(List<double[]>)'; both methods have same erasure">public static double[] toArrayDouble(List<? extends Number> v)</error> {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static double[][] toArrayDouble(List<double[]> v) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class ErasureTest1 {
|
||||
<error descr="'toArrayDouble(List<? extends Number>)' clashes with 'toArrayDouble(List)'; both methods have same erasure">public static double[] toArrayDouble(List<? extends Number> v)</error> {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static double[][] toArrayDouble(List v) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user