changeset 17811:afcf17402cdb

8015641: genstubs needs to cope with static interface methods Reviewed-by: ksrini
author jjg
date Wed, 29 May 2013 15:34:56 -0700
parents db9f3e9cd760
children 816b32d6bcb1 02a5abb2ae2f
files langtools/make/tools/genstubs/GenStubs.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
                 }