[ https://issues.apache.org/jira/browse/GROOVY-11676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954000#comment-17954000 ]
ASF GitHub Bot commented on GROOVY-11676: ----------------------------------------- sbglasius commented on PR #2232: URL: https://github.com/apache/groovy/pull/2232#issuecomment-2908705854 +1 Den lør. 24. maj 2025 kl. 03.12 skrev Eric Milles ***@***.*** >: > This is for the dynamic path > ------------------------------ > You can view, comment on, or merge this pull request online at: > > https://github.com/apache/groovy/pull/2232 > Commit Summary > > - 9adbfdc > <https://github.com/apache/groovy/pull/2232/commits/9adbfdc53c1909d53fe268e16f51be5470ed3be9> > separate class and method within `MissingMethodException` message > - 2f0a6fe > <https://github.com/apache/groovy/pull/2232/commits/2f0a6feb8ecee496f47a010d1832d5b0421a4a5f> > GROOVY-11676: object expression type in `MethodClosure` error message > > File Changes > > (12 files <https://github.com/apache/groovy/pull/2232/files>) > > - *M* src/main/java/groovy/lang/MetaClassImpl.java > <https://github.com/apache/groovy/pull/2232/files#diff-c28986077bdc1a71b46273a2f3596d89d4608fadc5843b56ec0bc25894e19652> > (8) > - *M* src/main/java/groovy/lang/MissingMethodException.java > <https://github.com/apache/groovy/pull/2232/files#diff-5c8b909b54642044fccd414e35adc17941596adfb4d0a3f3b360892f4dd01a6c> > (19) > - *M* src/spec/test/typing/StaticCompilationIntroTest.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-43479b49005ff93c09e25e276d2adde5a6b38d6affa0f8aa9fa2b21b0411240c> > (27) > - *R* src/test/groovy/bugs/Groovy3645.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-fe77438f7fe09dff41ea0c1f51a24aac4921f6af5d41b197d43e02328d94080b> > (24) > - *R* src/test/groovy/bugs/Groovy4857.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-15b89c3507a96328c53cfb0af0ece1f01c0631bc410be5aedc8f66c40bac6175> > (35) > - *R* src/test/groovy/bugs/Groovy6072.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-9c715c2bf23671a7757251c2221568f281b9f475cd1d4859744e89943a70a36d> > (16) > - *M* src/test/groovy/bugs/Groovy8678.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-21a40fcf2b864b88eea614a9fa18ea7a36d6491b3559cb52c1e07cee810b08f7> > (76) > - *M* src/test/groovy/bugs/Groovy9779.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-b8a82a87c64e8d3334bc5a6e47b9c611432847be08207e176bb02e39fd450c02> > (9) > - *M* src/test/groovy/bugs/MethodClosureTest.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-651cf626382c21872d9f11435490e641cdfc998d2acababa649d2f819ab3e889> > (10) > - *M* src/test/groovy/groovy/ThisAndSuperTest.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-e3ee160ba7b015fc896334dbfa78e0e08b4efabab7ca49656da9316e43a0cb24> > (6) > - *M* src/test/groovy/groovy/util/BuilderSupportTest.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-ce0460db2a808acd6c83c12c0be2fea9db75e92b8523bd331133672d5e13d68f> > (62) > - *M* > src/test/groovy/org/codehaus/groovy/transform/NewifyTransformBlackBoxTest.groovy > <https://github.com/apache/groovy/pull/2232/files#diff-70986c4e2f7d633b1f1031742c65191ab2ff2619234298c4f003918c10048612> > (44) > > Patch Links: > > - https://github.com/apache/groovy/pull/2232.patch > - https://github.com/apache/groovy/pull/2232.diff > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/groovy/pull/2232>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAEYZTEKWB457NAPOJPM6U3277BP5AVCNFSM6AAAAAB5Z5XOW2VHI2DSMVQWIX3LMV43ASLTON2WKOZTGA4DOOBUGQYTGNQ> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > > Method reference using class name results in bogus error message > ---------------------------------------------------------------- > > Key: GROOVY-11676 > URL: https://issues.apache.org/jira/browse/GROOVY-11676 > Project: Groovy > Issue Type: Bug > Affects Versions: 4.0.26 > Reporter: Christopher Smith > Assignee: Eric Milles > Priority: Minor > > I am writing a processing pipeline using {{with}} as a map-step. Since > {{with}} still does not accept {{{}Function{}}}, I am using method > references. I had a functional pipeline like this: > {code:groovy} > gremlin.V() /* stuff */ > .with(Queries.&whoamiTraversal) > .with(Queries.&processTraversal) > {code} > This worked correctly when the methods were static. However, I changed > {{processTraversal}} to be a non-static method, and I should have changed the > invocation to {{this.&processTraversal}}. Instead, the STC did not complain, > and I received a runtime error > {code} > groovy.lang.MissingMethodException: No signature of method: > org.codehaus.groovy.runtime.MethodClosure.processTraversal() is applicable > for argument types: ... > {code} > Instead of pointing at {{MethodClosure}}, the error message should indicate > where the actual problem is. -- This message was sent by Atlassian Jira (v8.20.10#820010)