You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2017/08/25 12:55:00 UTC
[jira] [Resolved] (SLING-7075) Inherited public fields cannot be
accessed directly in HTL
[ https://issues.apache.org/jira/browse/SLING-7075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu resolved SLING-7075.
---------------------------------
Resolution: Fixed
> Inherited public fields cannot be accessed directly in HTL
> ----------------------------------------------------------
>
> Key: SLING-7075
> URL: https://issues.apache.org/jira/browse/SLING-7075
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.0, Scripting HTL Engine 1.0.20
> Reporter: Radu Cotescu
> Assignee: Radu Cotescu
> Fix For: Scripting HTL Engine 1.0.38
>
>
> Inherited public fields for a Java use-class cannot be accessed directly in HTL, due to how object properties resolution is implemented in https://github.com/apache/sling/blob/1aa2c8be782ecb858de9030501e67edc4aba1357/bundles/scripting/sightly/java-compiler/src/main/java/org/apache/sling/scripting/sightly/render/AbstractRuntimeObjectModel.java#L293.
> When solving {{Fields}} the {{Field#getField}} method should be used instead.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)