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

Decompiled parameter names don't reflect the names in the bytecode

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.4
    • 3.0.0-alpha-4, 2.5.5
    • bytecode, Compiler
    • None

    Description

      org.codehaus.groovy.ast.Parameter names do not reflect what is stored in the bytecode.

      In this example project, I have 3 projects.

      api - Has a single interface that is compiled with parameters=true

      app - Has a single interface that extends the one in api and is compiled with parameters=true

      processor - Has a single ast transform that fails compilation if any method parameters start with "param"

       

      The parameter names for the interface in the api project do not reflect the bytecode when compiling the app project

       

      The runnable example is available here and I've attached it below

      https://github.com/jameskleeh/groovy-ast-bug

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            paulk Paul King
            Schlogen James Kleeh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment