Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark Paluch opened DATACMNS-1023 and commented
Redeclaring an overloaded method might invoke another existing method because of parameter assignability.
Consider following repository declaration:
interface RxJava2ConvertingRepository extends Repository<Object, Long> { Completable delete(Serializable id); }
backed by a repository ReactiveSortingRepository<Object, Serializable>.
ReactiveSortingRepository<Object, Serializable>
Invoking delete(serializable) may execute delete(Object), declared in the backing repository instead of delete(serializable).
delete(serializable)
delete(Object)
Method selection does not consider direct matches but relies on the order of Class.getMethods to verify parameter assignability
Class.getMethods
Affects: 2.0 M1 (Kay)
Issue Links:
DATACMNS-943 Redeclared save(Iterable) results in wrong method overload to be invoked eventually
DATACMNS-988 Provide RxJava 2 Repository interfaces
Referenced from: commits c247ee9, d87cb03, e737103
The text was updated successfully, but these errors were encountered:
mp911de
No branches or pull requests
Mark Paluch opened DATACMNS-1023 and commented
Redeclaring an overloaded method might invoke another existing method because of parameter assignability.
Consider following repository declaration:
backed by a repository
ReactiveSortingRepository<Object, Serializable>
.Invoking
delete(serializable)
may executedelete(Object)
, declared in the backing repository instead ofdelete(serializable)
.Method selection does not consider direct matches but relies on the order of
Class.getMethods
to verify parameter assignabilityAffects: 2.0 M1 (Kay)
Issue Links:
DATACMNS-943 Redeclared save(Iterable) results in wrong method overload to be invoked eventually
DATACMNS-988 Provide RxJava 2 Repository interfaces
Referenced from: commits c247ee9, d87cb03, e737103
The text was updated successfully, but these errors were encountered: