The input doesn't matter to Java's "more specific" test. What if the input is Integer and the choices are int and Object. Do you really prefer the NullPointerException-causing unboxing conversion to the safe widening reference conversion?
On Thu, Jun 9, 2011 at 3:30 PM, Charles Oliver Nutter <[email protected]>wrote: > On Thu, Jun 9, 2011 at 5:12 PM, Rémi Forax <[email protected]> wrote: > > You can, just consider int and Integer has the same node: > > int <= Integer && int >= Integer because int == Integer > > In addition, I don't see how Integer would ever need to be considered > more specific than int, for an int input. In what case does that > happen? > > - Charlie > > -- > You received this message because you are subscribed to the Google Groups > "JVM Languages" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jvm-languages?hl=en. > > -- You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en.
