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

Add setter for field MethodNode.name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.6-rc-1
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • Compiler
    • None
    • Patch

    Description

      I propose to add a setter for field MethodNode.name that allow AST transformations to change a method name, which can be useful at times. My current use case is a DSL for which I want to allow method names composed of arbitrary characters (whitespace, question mark, etc.). For this to work, method names will occasionally have to be encoded to avoid a VerifyError later on.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: