We're updating the issue view to help you get more done. 

ExecutableHelper#overrides does not work correctly with the method containing generic and non generic parameters

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 public class Entity { } public class Room extends Entity { } public interface IUpdateService<T extends Entity> { void update(T entity); void update(Long id, T entity); } public interface IRoomUpdateService extends IUpdateService<Room> { void update(Room entity); void update(Long id, Room entity); }

ExecutableHelper.overrides(IRoomUpdateService.class.getMethod("update", Room.class), IUpdateService.class.getMethod("update", Entity.class)) is true, but
ExecutableHelper.overrides(IRoomUpdateService.class.getMethod("update", Long.class, Room.class), IUpdateService.class.getMethod("update", Long.class, Entity.class)) is false.

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Alexander Korsukov

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.4.1.Final

Priority

Major