8287908: Use non-cloning reflection methods where acceptable

Reviewed-by: rriggs
This commit is contained in:
Sergey Tsypanov 2022-09-12 13:31:53 +00:00 committed by Roger Riggs
parent 0c61bf109f
commit 9ef6c0925a
4 changed files with 9 additions and 9 deletions

View file

@ -1256,7 +1256,7 @@ public class Proxy implements java.io.Serializable {
// check if this method is the resolved method if referenced from
// this proxy interface (i.e. this method is not implemented
// by any other superinterface)
Method m = proxyIntf.getMethod(method.getName(), method.getParameterTypes());
Method m = proxyIntf.getMethod(method.getName(), method.getSharedParameterTypes());
if (m.getDeclaringClass() == declaringClass) {
return proxyIntf;
}