DATACMNS-1598 - Fix interface projection returning EnumSet.

EnumSet's are now constructed with a proper component type.

Original pull request: #409.
This commit is contained in:
Wilds
2019-10-26 02:42:06 +02:00
committed by Mark Paluch
parent 6f3a1feba7
commit 52469e544a

View File

@@ -93,7 +93,7 @@ class ProjectingMethodInterceptor implements MethodInterceptor {
Class<?> rawType = type.getType();
Collection<Object> result = CollectionFactory.createCollection(rawType.isArray() ? List.class : rawType,
sources.size());
type.getComponentType().getType(), sources.size());
for (Object source : sources) {
result.add(getProjection(source, type.getRequiredComponentType().getType()));