[
https://issues.apache.org/jira/browse/SLING-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Sedding closed SLING-5658.
---------------------------------
> getProperty tag fails when returnClass parameter is an expression
> -----------------------------------------------------------------
>
> Key: SLING-5658
> URL: https://issues.apache.org/jira/browse/SLING-5658
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting JSP-Taglib 2.2.4
> Reporter: Julian Sedding
> Assignee: Julian Sedding
> Priority: Minor
> Fix For: Scripting JSP-Taglib 2.2.6
>
>
> Similar to SLING-5653 the getProperty tag cannot handle an expression for its
> {{returnClass}} parameter.
> I.e. the following causes a ClassCastException:
> {code}
> <c:set var="type" value="java.util.Calendar"/>
> <sling:getProperty properties="${props}" key="jcr:created" var="created"
> returnClass="${type}" />
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)