< prev index next >
src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java
Print this page
rev 49242 : 8188240: Reflection Proxy should skip static methods
Contributed-by: David Lloyd <david.lloyd@redhat.com>
Reviewed-by: mchung, sundar, shade
*** 447,459 ****
--- 447,461 ----
* earlier interfaces precedence over later ones with duplicate
* methods.
*/
for (Class<?> intf : interfaces) {
for (Method m : intf.getMethods()) {
+ if (!Modifier.isStatic(m.getModifiers())) {
addProxyMethod(m, intf);
}
}
+ }
/*
* For each set of proxy methods with the same signature,
* verify that the methods' return types are compatible.
*/
< prev index next >