You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/09/09 07:39:00 UTC

[jira] [Commented] (GROOVY-12390) GStringImpl: constant-value check pulls the compiler's ClassHelper into the runtime

    [ https://issues.apache.org/jira/browse/GROOVY-12390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113187#comment-18113187 ] 

ASF GitHub Bot commented on GROOVY-12390:
-----------------------------------------

paulk-asert opened a new pull request, #2912:
URL: https://github.com/apache/groovy/pull/2912

   …ClassHelper into the runtime




> 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
>
> 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)