mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8188240: Reflection Proxy should skip static methods
Reviewed-by: mchung, sundar, shade, plevart
This commit is contained in:
parent
fc927f60c3
commit
acb3103b8f
2 changed files with 73 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue