[
https://issues.apache.org/jira/browse/SLING-7075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu updated SLING-7075:
--------------------------------
Description:
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.
was:
Inherited public fields 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.
> 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)