Consider enclosing class for dynamic projection parameter detection.
We now consider the enclosing class to determine correct generic typing. Closes #3020
This commit is contained in:
@@ -260,7 +260,7 @@ public class Parameter {
|
||||
throw new IllegalArgumentException("Parameter is not associated with any method");
|
||||
}
|
||||
|
||||
var returnType = TypeInformation.fromReturnTypeOf(method);
|
||||
var returnType = TypeInformation.fromReturnTypeOf(method, parameter.getContainingClass());
|
||||
var unwrapped = QueryExecutionConverters.unwrapWrapperTypes(returnType);
|
||||
var reactiveUnwrapped = ReactiveWrapperConverters.unwrapWrapperTypes(unwrapped);
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ public abstract class QuerydslPredicateArgumentResolverSupport {
|
||||
throw new IllegalArgumentException("Method parameter is not backed by a method");
|
||||
}
|
||||
|
||||
return detectDomainType(TypeInformation.fromReturnTypeOf(method));
|
||||
return detectDomainType(TypeInformation.fromReturnTypeOf(method, parameter.getContainingClass()));
|
||||
}
|
||||
|
||||
private static TypeInformation<?> detectDomainType(TypeInformation<?> source) {
|
||||
|
||||
Reference in New Issue
Block a user