-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 5.0
-
Component/s: tools
-
01
-
generic
-
generic
javac accepts the following program in violation of the specification.
// ###@###.###
class Test5 {
static void foo(int i1, Integer i2) {
System.out.println("Integer");
}
static void foo(Integer i1, double d) {
System.out.println("double");
}
public static void main(String[] args) {
foo(5, 5);
}
}
// ###@###.###
class Test5 {
static void foo(int i1, Integer i2) {
System.out.println("Integer");
}
static void foo(Integer i1, double d) {
System.out.println("double");
}
public static void main(String[] args) {
foo(5, 5);
}
}