[ https://issues.apache.org/jira/browse/GROOVY-11680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954147#comment-17954147 ]
ASF GitHub Bot commented on GROOVY-11680: ----------------------------------------- eric-milles commented on PR #2235: URL: https://github.com/apache/groovy/pull/2235#issuecomment-2910495445 The constructors are indeed deprecated, but are they scheduled for removal? Was this a concern for someone? As long as you generate something that javac accepts but does not inline, then I guess it's fine. I'd prefer it stays simple. No need to be overly complicated just for the sake of stubs. > Java stubs use deprecated constant constructors in some cases > ------------------------------------------------------------- > > Key: GROOVY-11680 > URL: https://issues.apache.org/jira/browse/GROOVY-11680 > Project: Groovy > Issue Type: Improvement > Reporter: Paul King > Assignee: Paul King > Priority: Major > > In stub code for static constants in classes, generated code uses the > deprecated (from JDK9) constructors like {{new Boolean(false)}} instead of > {{Boolean.valueOf(false)}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)