Ole Lilienthal created OLINGO-499: ------------------------------------- Summary: AbstractValuable.isComplex Key: OLINGO-499 URL: https://issues.apache.org/jira/browse/OLINGO-499 Project: Olingo Issue Type: Bug Components: odata4-commons, odata4-server Affects Versions: (Java) V4 4.0.0-beta-02 Reporter: Ole Lilienthal Priority: Critical
isComplex() returns false for ValueType.COLLECTION_COMPLEX. It should rather be: return (valueType == ValueType.COMPLEX || valueType.getBaseType() == ValueType.COMPLEX); Otherwise there is a contradiction in the function: ODataJsonSerializer.writeComplexCollection The switch checks the value type to be COLLECTION_COMPLEX and wants to use the property.asComplex which currently always returns null due to the wrong isComplex implementation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)