[OLINGO-984] Client-Proxy: collection of enums as property not supported

Signed-off-by: Christian Amend <christian.amend@sap.com>
This commit is contained in:
Frederik Zimmer 2016-07-22 17:05:42 +02:00 committed by Christian Amend
parent 756ae564e5
commit a757436015
1 changed files with 4 additions and 0 deletions

View File

@ -597,6 +597,10 @@ public final class CoreUtils {
ComplexInvocationHandler.getInstance(itemValue.asComplex(), internalRef, service));
collection.add(collItem);
} else if (itemValue.isEnum()) {
collection.add(CoreUtils.enumValueToObject(itemValue.asEnum(), ref));
} else {
throw new RuntimeException("Unsupported collection item type " + itemValue.getTypeName());
}
}