Parameter.isDynamicProjectionParameter
does not properly resolve generics of containing class
#3020
Labels
type: regression
A regression from a previous release
Milestone
Consider the following arrangement:
When comparing the method parameter
Class<P> type
against the return type definition, then we consider the containing classParametrizedRepository
at the parameter level (#2996) but we do not consider the containing class when introspecing the method return type.This yields
?
as parameter forOptional
while the method parameter resolves correctly toProjection<User>
. In a second step, we compare inner generics of the return type and therefore, the equality check fails.While we previously always fell back to
?
, fixing #2996 uncovered this bug.The text was updated successfully, but these errors were encountered: