[ 
https://issues.apache.org/jira/browse/OLINGO-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cyrill Schwyter updated OLINGO-1638:
------------------------------------
    Description: 
In our case an Action has a Collection of Entities as Parameter.

In our Code we call 

org.apache.olingo.commons.api.data.Valuable#asCollection

this Error occoours:
java.lang.ClassCastException: class 
org.apache.olingo.commons.api.data.EntityCollection cannot be cast to class 
java.util.List (org.apache.olingo.commons.api.data.EntityCollection is in 
unnamed module of loader 'app'; java.util.List is in module java.base of loader 
'bootstrap')

 

  was:
In our case an Action has a Collection of Entities as Parameter.

In our Code we call 

org.apache.olingo.commons.api.data.Valuable#asCollection

this Error occoours:
java.lang.ClassCastException: class 
org.apache.olingo.commons.api.data.EntityCollection cannot be cast to class 
java.util.List (org.apache.olingo.commons.api.data.EntityCollection is in 
unnamed module of loader 'app'; java.util.List is in module java.base of loader 
'bootstrap')


> Valueble#asCollection causes ClassCastException when called on List of 
> Entities
> -------------------------------------------------------------------------------
>
>                 Key: OLINGO-1638
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1638
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: Version (Java) V4 5.0.0
>            Reporter: Cyrill Schwyter
>            Priority: Major
>         Attachments: Diff_ODataJsonDeserializer.png, 
> fix_Parameter_Entity_Collection.patch
>
>
> In our case an Action has a Collection of Entities as Parameter.
> In our Code we call 
> org.apache.olingo.commons.api.data.Valuable#asCollection
> this Error occoours:
> java.lang.ClassCastException: class 
> org.apache.olingo.commons.api.data.EntityCollection cannot be cast to class 
> java.util.List (org.apache.olingo.commons.api.data.EntityCollection is in 
> unnamed module of loader 'app'; java.util.List is in module java.base of 
> loader 'bootstrap')
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to