[ https://issues.apache.org/jira/browse/GROOVY-8282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541500#comment-16541500 ]
ASF GitHub Bot commented on GROOVY-8282: ---------------------------------------- GitHub user paulk-asert opened a pull request: https://github.com/apache/groovy/pull/774 GROOVY-8282: Error while popping argument from operand stack tracker … …in class ...$Trait$Helper Bare named argument parameters are captured in a TupleExpression rather than an ArgumentListExpression. While it would be nice to retrofit APP to have the correct type, that would impact many more places. You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/groovy groovy8282 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/774.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #774 ---- commit f4baa9c82720bcf2ceda57f5c793b81ac6b8b5f4 Author: Paul King <paulk@...> Date: 2018-07-12T11:30:54Z GROOVY-8282: Error while popping argument from operand stack tracker in class ...$Trait$Helper Bare named argument parameters are captured in a TupleExpression rather than an ArgumentListExpression. While it would be nice to retrofit APP to have the correct type, that would impact many more places. ---- > Error while popping argument from operand stack tracker in class > ...$Trait$Helper > --------------------------------------------------------------------------------- > > Key: GROOVY-8282 > URL: https://issues.apache.org/jira/browse/GROOVY-8282 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.8, 2.4.15, 2.5.1 > Reporter: Lucas Cimon > Priority: Minor > > Hello. > I'm facing a compilation error with this simple {{trait}} definition, with a > public method invoking a private one with an implicit {{Map}}: > {code} > trait BugReproduction { > def foo() { > bar(a: 1) > } > private bar(Map args) { > } > } > {code} > The error message: > {code} > 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). > {code} > I use Groovy v2.4.8 -- This message was sent by Atlassian JIRA (v7.6.3#76005)