Javadoc
Finds a maximally specific public method called name in
c accepting parameters of type parameters.
In contrast to Class.getMethod
,
resolve
performs type widening on the parameters,
in effect emulating the steps performed at compile time for
finding the a method.
Notice that we return the first method found in a depth-first
left-to-right search. This is different from what Java does at
compile time. We do not support auto-boxing or methods with a
variable number of arguments. Lack of auto-boxing means the
methods with parameters of primitive types are never returned.
To improve performance, a cache of resolved methods is
maintained.