In case of kSuper we should complain sometimes.
Bug:
17265201
Change-Id: Ifad903a750495963c7128296713fbd7c4add71cd
return IsDirect() || (methods_class->IsInterface() && !IsMiranda());
}
case kSuper:
- return false; // TODO: appropriate checks for call to super class.
+ // Constructors and static methods are called with invoke-direct.
+ // Interface methods cannot be invoked with invoke-super.
+ return IsConstructor() || IsStatic() || GetDeclaringClass()->IsInterface();
case kInterface: {
Class* methods_class = GetDeclaringClass();
return IsDirect() || !(methods_class->IsInterface() || methods_class->IsObjectClass());