changeset 1785:d685b12b62a4

8015641: genstubs needs to cope with static interface methods Reviewed-by: ksrini
author jjg
date Wed, 29 May 2013 15:34:56 -0700
parents 92e420e9807d
children 18943a1b7a47 9f11c7676cd5
files make/tools/genstubs/GenStubs.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/tools/genstubs/GenStubs.java	Wed May 29 10:56:29 2013 +0100
+++ b/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;
                 }