[
https://issues.apache.org/jira/browse/OLINGO-819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008715#comment-15008715
]
Christian Amend commented on OLINGO-819:
----------------------------------------
Hi Michael,
This should not happen as the first check after calling the method compares the
base type with the derived type. If they are the same the base type is
returned. Could it be that you set the property.setType() with a wrong type
name?
Here the first statement in that method:
if (derivedTypeName == null ||
baseType.getFullQualifiedName().getFullQualifiedNameAsString().equals(derivedTypeName))
{
return baseType;
}
Best Regards,
Christian
> ODataJsonSerializer.resolveComplexType throws unjustified Exception
> -------------------------------------------------------------------
>
> Key: OLINGO-819
> URL: https://issues.apache.org/jira/browse/OLINGO-819
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0
> Reporter: Michael Burwig
>
> {{ODataJsonSerializer.complex}} calls {{final EdmComplexType resolvedType =
> resolveComplexType(metadata, type, property.getType());}} and fails (_Wrong
> base type_) if {{type}} and {{property.getType()}} refer to the same type.
> This behavior does not appear to be stated or implied by the documentation
> and seems unintuitive to me.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)