You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/11/09 15:58:00 UTC

[jira] [Created] (GROOVY-10353) StaticTypeCheckingSupport#evaluateExpression can provide lightweight evaluation for simple expressions

Eric Milles created GROOVY-10353:
------------------------------------

             Summary: StaticTypeCheckingSupport#evaluateExpression can provide lightweight evaluation for simple expressions
                 Key: GROOVY-10353
                 URL: https://issues.apache.org/jira/browse/GROOVY-10353
             Project: Groovy
          Issue Type: Improvement
            Reporter: Eric Milles
            Assignee: Eric Milles


{{StaticTypeCheckingSupport#evaluateExpression}} is used to evaluate annotation attribute expressions when processing AST transforms or static type checking.  When asked to eval a simple string constant, it could return a value directly.  This could save on cloning a compiler configuration and spinning up class parse, compile and execute.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)