You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Cyrill Schwyter (Jira)" <ji...@apache.org> on 2025/04/04 13:50:00 UTC

[jira] [Updated] (OLINGO-1638) Valueble#asCollection causes ClassCastException when called on List of Entities

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

Cyrill Schwyter updated OLINGO-1638:
------------------------------------
    Attachment: fix_Parameter_Entity_Collection.patch

> 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: 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)