8015641: genstubs needs to cope with static interface methods
Reviewed-by: ksrini
This commit is contained in:
parent
33f5aae0ff
commit
dd5dcda907
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user