Radu Cotescu created SLING-7097:
-----------------------------------
Summary: The SlingRuntimeObjectModel should adapt a target object
to ValueMap as a last resort
Key: SLING-7097
URL: https://issues.apache.org/jira/browse/SLING-7097
Project: Sling
Issue Type: Bug
Components: Scripting
Affects Versions: Scripting HTL Engine 1.0.38
Reporter: Radu Cotescu
Assignee: Radu Cotescu
Fix For: Scripting HTL Engine 1.0.40
The
{{org.apache.sling.scripting.sightly.impl.engine.runtime.SlingRuntimeObjectModel}}
should adapt a target object to {{ValueMap}} as a last resort in
{{org.apache.sling.scripting.sightly.impl.engine.runtime.SlingRuntimeObjectModel#getProperty}}.
Otherwise a {{ValueMap}} property obtained through adaption could hide the
result returned by a publicly accessible field or method with the same name /
base name as a property provided by the map.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)