8015641: genstubs needs to cope with static interface methods

Reviewed-by: ksrini
This commit is contained in:
Jonathan Gibbons 2013-05-29 15:34:56 -07:00
parent 33f5aae0ff
commit dd5dcda907

View File

@ -230,9 +230,9 @@ public class GenStubs {
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;
}