[ 
https://issues.apache.org/jira/browse/GROOVY-12390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King resolved GROOVY-12390.
--------------------------------
    Fix Version/s: 6.0.0-RC-2
       Resolution: Fixed

> GStringImpl: constant-value check pulls the compiler's ClassHelper into the 
> runtime
> -----------------------------------------------------------------------------------
>
>                 Key: GROOVY-12390
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12390
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 6.0.0-RC-2
>
>
> Involves: checkValuesStringConstant calls 
> ImmutablePropertyUtils.builtinOrMarkedImmutableClass, whose class initialiser 
> builds ClassNodes through ClassHelper, which reflects over the JDK types. The 
> two checks it needs, a name set and an annotation test, belong in a runtime 
> utility that the AST utility delegates to.
> Impact on normal usage: positive. The first GString with a non-trivial value 
> stops loading a few dozen compiler classes, and native-image reachability 
> shrinks accordingly. Behaviour is unchanged. This one is worth doing 
> regardless of Android.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to