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

Parameter name data is erased when applying traits regardless of --parameters setting

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5
    • Fix Version/s: 2.5.6, 3.0.0-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      When Groovy applies a trait to class it erases parameter name data. You can see this here:

      https://github.com/apache/groovy/blob/982bd38b3216ea3143b0d667d2cd47d2c758f884/src/main/java/org/codehaus/groovy/transform/trait/TraitComposer.java#L157

      So regardless whether `-parameters` is specified to the compiler traits will not retain parameter name information.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              graemerocher1 Graeme Rocher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: