Why doesn’t autoboxing overrule varargs when using method overloading in Java 7?

I guess it’s related to bug #6886431, which seems to be fixed in OpenJDK 7 as well. The problem is that JLS 15.12.2.5 Choosing the Most Specific Method says that one method is more specific than another one when types of formal parameters of the former are subtypes of formal parameters of the latter. Since … Read more

Variadic function (va_arg) doesn’t work with float?

Parameters of functions that correspond to … are promoted before passing to your variadic function. char and short are promoted to int, float is promoted to double, etc. 6.5.2.2.7 The ellipsis notation in a function prototype declarator causes argument type conversion to stop after the last declared parameter. The default argument promotions are performed on … Read more