In this example:
public class X {
private static <T> T f(T t) {
return t;
}
public static void main(String[] args) {
f(5);
}
}
Would the call to f be illegal? Or would it be legal and invoke
<Integer>f
and perform a boxing conversion on the method argument?
Basically it is the question regarding the impact of conversions on the inference process. What is the relationship between type parameter inference and method argument conversions? The spec does not say anything, or does it?