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

Fix edge cases for SecureASTCustomizer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-2, 4.0.15, 3.0.20, 2.5.24
    • None
    • None

    Description

      There are a number of edge cases which don't work as expected. As one example,
      if we set allowedReceiversClasses to String and have method calls allowed, then the script "1.plus(1)" is rejected as expected, but the following is not rejected:

      static main(args) {
          1.plus(1)
      }
      

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: