You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2014/07/01 16:02:24 UTC

[jira] [Resolved] (OLINGO-297) Unable to create FunctionImport with empty return type

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

Christian Amend resolved OLINGO-297.
------------------------------------

       Resolution: Fixed
    Fix Version/s: V2 2.0.0

Fixed with version 2.0.0 by commit: 84a47f92b77f7693295df4a0eeb9778bd10c438a

> Unable to create FunctionImport with empty return type
> ------------------------------------------------------
>
>                 Key: OLINGO-297
>                 URL: https://issues.apache.org/jira/browse/OLINGO-297
>             Project: Olingo
>          Issue Type: New Feature
>          Components: odata2-core
>    Affects Versions: V2 1.2.0
>            Reporter: Vitali Yarmolik
>            Assignee: Christian Amend
>             Fix For: V2 2.0.0
>
>
> It is impossible to create a FunctionImport with empty return type.
> In the CSDL specification it's stated that {quote}<FunctionImport> *can* define a ReturnType.{quote} 
> At odata.org it is mentioned as well in _3.3. Addressing Service Operations_ section at http://www.odata.org/documentation/odata-version-2-0/uri-conventions/ : {quote}A Service Operation can accept primitive type input parameters and can be defined to return a single primitive, single complex type, collection of primitives, collection of complex types, a single Entry, a Collection of Entries, or *void*.{quote}
> When I create a FunctionImport object in the EdmProvider and don't specify its ReturnType it is shown correctly in the service metadata (i.e. without ReturnType attribute), but when I send request to call such a function import I get NullPointerException when ReturnType.getTypeName() method is called in EdmFunctionImportImplProv.getReturnType() method.



--
This message was sent by Atlassian JIRA
(v6.2#6252)