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 16:40:00 UTC
[jira] [Commented] (GROOVY-10353)
StaticTypeCheckingSupport#evaluateExpression can provide lightweight
evaluation for simple expressions
[ https://issues.apache.org/jira/browse/GROOVY-10353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17441270#comment-17441270 ]
Eric Milles commented on GROOVY-10353:
--------------------------------------
https://github.com/apache/groovy/pull/1651
> 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
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {{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)