Skip to content
Prev Previous commit
Next Next commit
Merge branch 'refs/heads/main' into fix/3943
# Conflicts:
#	processor/src/main/java/org/mapstruct/ap/internal/processor/MethodRetrievalProcessor.java
  • Loading branch information
anenviousguest committed Oct 15, 2025
commit 53c76348f62f74617c9b0040d093681a818b6af8
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,11 @@ private boolean checkParameterAndReturnType(ExecutableElement method, List<Param
return false;
}

if ( !parameterType.isIterableOrStreamType() && resultType.isArrayType() ) {
messager.printMessage( method, Message.RETRIEVAL_NON_ITERABLE_TO_ARRAY );
return false;
}

for ( Type typeParameter : parameterType.getTypeParameters() ) {
if ( typeParameter.hasSuperBound() ) {
messager.printMessage( method, Message.RETRIEVAL_WILDCARD_SUPER_BOUND_SOURCE );
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.