Fix generic super lookups

This commit is contained in:
Mumfrey committed 2016-02-19 13:45:16 +00:00
1 parent 1e6ae382dc
commit e9d93c66ca
1 file changed
+4
@@ -106,6 +106,10 @@ public class TargetValidator extends MixinValidator {
return false;
}
if (MirrorUtils.isAssignable(this.processingEnv, targetType, superClass)) {
return true;
}
TypeElement targetElement = (TypeElement)((DeclaredType)targetType).asElement();
TypeMirror targetSuper = targetElement.getSuperclass();
if (targetSuper.getKind() == TypeKind.NONE) {