8015641: genstubs needs to cope with static interface methods
Reviewed-by: ksrini
--- a/langtools/make/tools/genstubs/GenStubs.java Wed May 29 10:56:29 2013 +0100
+++ b/langtools/make/tools/genstubs/GenStubs.java Wed May 29 15:34:56 2013 -0700
@@ -230,9 +230,9 @@
tree.typarams = translateTypeParams(tree.typarams);
tree.params = translateVarDefs(tree.params);
tree.thrown = translate(tree.thrown);
- if (tree.restype != null && tree.body != null) {
+ if (tree.body != null) {
if ((currClassMods & Flags.INTERFACE) != 0) {
- tree.mods.flags &= ~Flags.DEFAULT;
+ tree.mods.flags &= ~(Flags.DEFAULT | Flags.STATIC);
} else {
tree.mods.flags |= Flags.NATIVE;
}