Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6794

Access forbidden can be triggered in MarkupTemplateEngine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1
    • Templating
    • None

    Description

      The following template fails at runtime:

      messages.each { message ->
          yield message.summary
      }
      

      If messages is of type Message where Message is:

      class Message {
              private String summary
      
              String getSummary() {
                  return summary
              }
      
              void setSummary(final String summary) {
                  this.summary = summary
              }
          }
      

      It fails with:

      Access to java.lang.Object#summary is forbidden
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: