8015641: genstubs needs to cope with static interface methods

Wed, 29 May 2013 15:34:56 -0700

author
jjg
date
Wed, 29 May 2013 15:34:56 -0700
changeset 1786
d685b12b62a4
parent 1785
92e420e9807d
child 1787
18943a1b7a47
child 1790
9f11c7676cd5

8015641: genstubs needs to cope with static interface methods
Reviewed-by: ksrini

make/tools/genstubs/GenStubs.java file | annotate | diff | comparison | revisions
     1.1 --- a/make/tools/genstubs/GenStubs.java	Wed May 29 10:56:29 2013 +0100
     1.2 +++ b/make/tools/genstubs/GenStubs.java	Wed May 29 15:34:56 2013 -0700
     1.3 @@ -230,9 +230,9 @@
     1.4              tree.typarams = translateTypeParams(tree.typarams);
     1.5              tree.params = translateVarDefs(tree.params);
     1.6              tree.thrown = translate(tree.thrown);
     1.7 -            if (tree.restype != null && tree.body != null) {
     1.8 +            if (tree.body != null) {
     1.9                  if ((currClassMods & Flags.INTERFACE) != 0) {
    1.10 -                    tree.mods.flags &= ~Flags.DEFAULT;
    1.11 +                    tree.mods.flags &= ~(Flags.DEFAULT | Flags.STATIC);
    1.12                  } else {
    1.13                      tree.mods.flags |= Flags.NATIVE;
    1.14                  }

mercurial