Paul King created GROOVY-12390:
----------------------------------

             Summary: 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


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