You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Björn Kautler (Jira)" <ji...@apache.org> on 2020/07/27 21:24:00 UTC

[jira] [Created] (GROOVY-9663) AST Browser does not render contents of ad-hoc array

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)