Fix supertype resolution for field accesses qualified with super.

This commit is contained in:
Mumfrey committed 2015-04-12 01:21:21 +01:00
1 parent 9d0627e0ad
commit ebaf45a988
1 file changed
+6
@@ -239,6 +239,12 @@ public class MixinTargetContext implements IReferenceMapperContext {
this.transformDescriptor(fieldInsn);
if (fieldInsn.owner.equals(this.getClassRef())) {
fieldInsn.owner = this.targetClass.name;
} else {
ClassInfo fieldOwner = ClassInfo.forName(fieldInsn.owner);
if (fieldOwner.isMixin()) {
ClassInfo actualOwner = this.targetClassInfo.findCorrespondingType(fieldOwner);
fieldInsn.owner = actualOwner != null ? actualOwner.getName() : this.targetClass.name;
}
}
} else if (insn instanceof TypeInsnNode) {
TypeInsnNode typeInsn = (TypeInsnNode)insn;