Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7075

Inherited public fields cannot be accessed directly in HTL

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: