[
https://issues.apache.org/jira/browse/OLINGO-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Bolz updated OLINGO-583:
--------------------------------
Issue Type: New Feature (was: Bug)
> support primitive type arrays
> ------------------------------
>
> Key: OLINGO-583
> URL: https://issues.apache.org/jira/browse/OLINGO-583
> Project: Olingo
> Issue Type: New Feature
> Components: odata4-commons
> Affects Versions: (Java) V4 4.0.0-beta-02
> Reporter: Erming Tuo
>
> Here is $metadata of the property Serials, which is a collection of primitive
> –
>
> <Property Name="Serials" Type="Collection(Edm.Int32)"/>
>
> Now, here is how I compose the Property –
>
> int[] serials = new int[2];
> serials[0] = 1342343;
> serials[1] = 13;
>
> Property serialProperty = new PropertyImpl(null, “Serials”,
> ValueType.COLLECTION_PRIMITIVE, serials);
>
> Very simple and straight , and then library will throw out this mistake –
>
> 1. {
> 2. "error":
> 3. {
> 4. "code": null,
> 5. "message": "[I cannot be cast to java.util.List"
> 6. }
> 7. }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)