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:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user