Björn Kautler created GROOVY-9663:
-------------------------------------
Summary: AST Browser does not render contents of ad-hoc array
Key: GROOVY-9663
URL: https://issues.apache.org/jira/browse/GROOVY-9663
Project: Groovy
Issue Type: Bug
Affects Versions: 2.5.12, 3.0.4
Reporter: Björn Kautler
If you paste this to a 3.x console: {{def foo = new Object[] \{{ bar -> true
}}}} and open the AST Browser, what you are shown is {{java.lang.Object foo =
new java.lang.Object[]}} which does not really reflect the AST as the
expressions are missing. This confused me multiple times already when looking
at the result of an AST transformation.
The same was true in 2.5 already, just that you couldn't legally write that
expression in Groovy source code. But you could already construct it during AST
transformation and then have the same display problem.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)