public class Summer {
public static int sum(List<Integer> ints) {
....
}
public static double sum(List<Double> doubles) {
....
}
}
Why does Java 6 compiles this code and Java 7 does not? Java 7 reports the error "both methods have same erasure". Is it possible to make java 7 to compile this code like java 6 does? Will I get any issues if I compile code in java 6 and run in on java 7(code cannot be compiled with java 7 javac)?