Fix in MethodDescriptor.isOrOverridesJavaLangObjectMethod for interface methods.
Now if an interface declares one of the java.lang.Object methods, isOrOverridesJavaLangObjectMethod will correctly return true.
@@ -457,9 +457,8 @@ public abstract class MethodDescriptor extends MemberDescriptor {
return true;
}
- return getJavaOverriddenMethodDescriptors().stream()
- .map(MethodDescriptor::getEnclosingTypeDescriptor)
- .anyMatch(TypeDescriptors::isJavaLangObject);
+ return TypeDescriptors.get().javaLangObject.getDeclaredMethodDescriptors().stream()
+ .anyMatch(this::isOverride);
}
@Override
