Skip to content

Commit 36b95d3

Browse files
wildsmp911de
authored andcommitted
DATACMNS-1598 - Fix interface projection returning EnumSet.
EnumSet's are now constructed with a proper component type. Original pull request: #409.
1 parent ac0633e commit 36b95d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/projection/ProjectingMethodInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private Object projectCollectionElements(Collection<?> sources, TypeInformation<
9393

9494
Class<?> rawType = type.getType();
9595
Collection<Object> result = CollectionFactory.createCollection(rawType.isArray() ? List.class : rawType,
96-
sources.size());
96+
type.getComponentType().getType(), sources.size());
9797

9898
for (Object source : sources) {
9999
result.add(getProjection(source, type.getRequiredComponentType().getType()));

0 commit comments

Comments
 (0)