[
https://issues.apache.org/jira/browse/SLING-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated SLING-4773:
-----------------------------------
Description: Even if a resource was created with {{sling:resourceType}}
being set to some value calling {{Resource.getResourceType()}} will always
return the value of its "jcr:primaryType" property, even if the
"sling:resourceType" property is being set. (was: Even if a resource was
created with {{sling:resourceType}} set has been created, calling
{{Resource.getResourceType()}} will always return the "jcr:primaryType" even if
"sling:resourceType" is being set.)
> SlingMocks always returns jcr:primaryType for Resource.getResourceType()
> ------------------------------------------------------------------------
>
> Key: SLING-4773
> URL: https://issues.apache.org/jira/browse/SLING-4773
> Project: Sling
> Issue Type: Bug
> Affects Versions: Testing Sling Mock 1.3.0
> Reporter: Konrad Windszus
> Attachments: SLING-4773-testcase-v1.diff
>
>
> Even if a resource was created with {{sling:resourceType}} being set to some
> value calling {{Resource.getResourceType()}} will always return the value of
> its "jcr:primaryType" property, even if the "sling:resourceType" property is
> being set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)