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

Error while popping argument from operand stack tracker in class ...$Trait$Helper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.8, 2.4.15, 2.5.1
    • 2.5.2
    • None
    • None

    Description

      Hello.

      I'm facing a compilation error with this simple trait definition, with a public method invoking a private one with an implicit Map:

      trait BugReproduction {
          def foo() {
              bar(a: 1)
          }
          private bar(Map args) {
          }
      }
      

      The error message:

      Caught: BUG! exception in phase 'class generation' in source unit 'file:/.../BugReproduction.groovy' Error while popping argument from operand stack tracker in class BugReproduction$Trait$Helper method java.lang.Object foo(BugReproduction).
      BUG! exception in phase 'class generation' in source unit 'file:/.../BugReproduction.groovy' Error while popping argument from operand stack tracker in class BugReproduction$Trait$Helper method java.lang.Object foo(BugReproduction).
      

      I use Groovy v2.4.8

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              LucasC Lucas Cimon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: