Skip to content

Commit

Permalink
The compilation of static methods should be excluded when generating …
Browse files Browse the repository at this point in the history
…the proxy. apache#4647 (apache#4649)
  • Loading branch information
CrazyHZM authored and beiwei30 committed Jul 25, 2019
1 parent d4904d4 commit f2af6fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ public static Proxy getProxy(ClassLoader cl, Class<?>... ics) {
if (worked.contains(desc)) {
continue;
}
if (ics[i].isInterface() && Modifier.isStatic(method.getModifiers())) {
continue;
}
worked.add(desc);

int ix = methods.size();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@ public interface ITest {
String getName();

void setName(String name, String name2);

static String sayBye() {
return "Bye!";
}
}
}

0 comments on commit f2af6fd

Please sign in to comment.