mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8287908: Use non-cloning reflection methods where acceptable
Reviewed-by: rriggs
This commit is contained in:
parent
0c61bf109f
commit
9ef6c0925a
4 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue