I've noticed that the overload selection mechanism based on parameter types is not working when some parameters are assignable, in the sense of Class.isAssignableFrom(...).
Given those methods:
We can select both methods via bean:toString(String) or bean:toString(int)
But given those methods:
bean:toString(String) end in selecting toString(Object).
Ideally, I would expect it to select toString(String). Otherwise, unwinding an AmbiguousCallException may perhaps apply.
I'm wondering whether ObjectHelper.isOverridingMethod(...) would be mixing overload vs override.
Will attach a test case.