Daniel Sun created GROOVY-12815:
-----------------------------------
Summary: @ASTTest still fails when the value closure uses an
explicit arrow
Key: GROOVY-12815
URL: https://issues.apache.org/jira/browse/GROOVY-12815
Project: Groovy
Issue Type: Bug
Components: Compiler
Reporter: Daniel Sun
GROOVY-9010 (Closed/Fixed in 3.0.0-beta-1 / 2.5.7 / 2.4.17) fixed
`MissingMethodException` during `@ASTTest` evaluation.
`bugs.Groovy9010#testASTTestWithArrowInClosure` in
`src/test/groovy/bugs/Groovy9010.groovy` is still `@NotYetImplemented` for
`@ASTTest(phase=SEMANTIC_ANALYSIS, value={ -> assert true })`.
`testASTTestWithNoSpacesInClosure` (`value={assert 1==1}`) already passes.
Scanned SHA: `ca71425976fd2e3da6db9634955ba0d39550a6d4`.
Re-checked on 22 Nov 2026 (Asia/Taipei) at the same SHA by temporarily removing
@NotYetImplemented and running the test on JDK 17: it still fails. The @ASTTest
value closure with an explicit arrow failed to parse: "Unexpected input: '->'"
at column 2 of "-> assert true".
**Acceptance criterion:** An `@ASTTest` value closure that starts with `->`
evaluates correctly, and the annotation is removed.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)