Skip to content

Recursion comparison using properties ignores default interface methods. #3125

@rpiterman

Description

@rpiterman

If an Object has methods defined as default methods in an interface, these are not detected by the ComparingProperties() introspection strategy:

for example:

public interface Bar {
  default String getName() {
     return "bar";
  }
}

public class Foo implements Bar {
}

expected:

ComparingProperties should also detect properties defined in as default methods in interfaces implemented by the target object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions