-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
Affects Version/s: 8, 9
-
Component/s: tools
While compiling this code:
class Test {
<Z> Z m(Z z) { return null; }
void test() {
double d1 = m(1);
}
}
the code is successfully compiled but javac adds an "int" bound during inference.
class Test {
<Z> Z m(Z z) { return null; }
void test() {
double d1 = m(1);
}
}
the code is successfully compiled but javac adds an "int" bound during inference.