3 ms·
What is method scoring? I’ve never heard that term in VM/compilers and my Google-fu is failing me.
by bertr4nd 6y ago
What is method scoring? I’ve never heard that term in VM/compilers and my Google-fu is failing me.
- sk5t 6y agoI imagine it refers to the comparison of argument types to find the best match among overloaded methods with the same arity. e.g. when the machine has got "void foo(java.lang.Object)" and "void foo(java.lang.Number)" to choose from.
- recursivedoubts 6y agoYep, exactly. Gets to be lots of fun when you throw autoboxing and, especially, generics, into the mix.