Fix super qualifier for default interfaces #855

This commit is contained in:
JDLogic
2018-09-12 14:23:52 +03:00
committed by Egor Ushakov
parent 21a80957bb
commit b53c895399
2 changed files with 4 additions and 3 deletions
@@ -247,7 +247,9 @@ public class InvocationExprent extends Exprent {
if (invocationTyp == INVOKE_SPECIAL) {
if (!classname.equals(this_classname)) { // TODO: direct comparison to the super class?
super_qualifier = this_classname;
StructClass cl = DecompilerContext.getStructContext().getClass(classname);
boolean isInterface = cl != null && (cl.getAccessFlags() & CodeConstants.ACC_INTERFACE) != 0;
super_qualifier = !isInterface ? this_classname : classname;
}
}
}