8188240: Reflection Proxy should skip static methods

Reviewed-by: mchung, sundar, shade, plevart
This commit is contained in:
David Lloyd 2018-03-15 12:07:59 +01:00 committed by Aleksey Shipilev
parent fc927f60c3
commit acb3103b8f
2 changed files with 73 additions and 1 deletions

View file

@ -449,7 +449,9 @@ class ProxyGenerator {
*/
for (Class<?> intf : interfaces) {
for (Method m : intf.getMethods()) {
addProxyMethod(m, intf);
if (!Modifier.isStatic(m.getModifiers())) {
addProxyMethod(m, intf);
}
}
}