Skip to content

ReflectionRepositoryInvoker not working properly [DATACMNS-410] #879

@spring-projects-issues

Description

@spring-projects-issues

Arik Cohen opened DATACMNS-410 and commented

The ReflectionRepositoryInvoker is not invoking the findOne method correctly on a non-CrudRepository implementation. Specifically, the:

 
public T invokeFindOne(Serializable id) {
  return (T) ReflectionUtils.invokeMethod(methods.getFindOneMethod(), id);
}

should be fixed to:

 
public T invokeFindOne (Serializable id) {
  return (T) ReflectionUtils.invokeMethod (methods.getFindOneMethod (), repository, id);
}

Affects: 1.6.2 (Babbage SR1), 1.6.3 (Babbage SR2)

Backported to: 1.6.4 (Babbage SR3)

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions