Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-671

The signature of the cast function uses an incorrect return-type.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.0_ERRATA01
    • Component/s: URL Conventions
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      Correct the signature to
      type cast(type)
      type cast(expression,type)

      Show
      Correct the signature to type cast(type) type cast(expression,type)

      Description

      In 5.1.1.4.29 the signature of the cast function specifies the non-existing return type Edm.Any.
      The return type of the cast function is determined by the type parameter of the function, so the correct signature is
      type cast(type)
      type cast(expression,type)
      (as stated by the description "The single parameter cast function returns the current instance cast to the type specified. The two-parameter cast function returns the object referred to by the expression cast to the type specified.")

        Attachments

          Activity

            People

            • Assignee:
              martinzurmuehl Martin Zurmuehl
              Reporter:
              martinzurmuehl Martin Zurmuehl
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: