-
Bug
-
Resolution: Duplicate
-
P4
-
5.0
-
generic
-
solaris_8
javac improperly rejects the following:
class Z {
static <T> T f(T a, T b) {
return a;
}
static Cloneable main(Cloneable a, float[] b) {
return f(a, b);
}
}
class Z {
static <T> T f(T a, T b) {
return a;
}
static Cloneable main(Cloneable a, float[] b) {
return f(a, b);
}
}
- duplicates
-
JDK-4941882 incorrect inference for result of lub(int[], float[])
-
- Closed
-
- relates to
-
JDK-6332204 com.sun.tools.javac.code.Types.lub() throws NPE
-
- Closed
-
-
JDK-6222762 Primitive arrays and varargs inference leads to crash in TreeMaker.Type(TreeMaker.java:531)
-
- Closed
-