8015641: genstubs needs to cope with static interface methods
authorjjg
Wed, 29 May 2013 15:34:56 -0700
changeset 17811 afcf17402cdb
parent 17810 db9f3e9cd760
child 17812 816b32d6bcb1
child 17998 02a5abb2ae2f
8015641: genstubs needs to cope with static interface methods Reviewed-by: ksrini
langtools/make/tools/genstubs/GenStubs.java
--- 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;
                 }