[ https://issues.apache.org/jira/browse/GROOVY-11680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954161#comment-17954161 ]
ASF GitHub Bot commented on GROOVY-11680: ----------------------------------------- paulk-asert commented on PR #2235: URL: https://github.com/apache/groovy/pull/2235#issuecomment-2910670526 The Grails build messages are cluttered with many of these: > /Users/paulk/working/grails-core/grails-gradle/model/build/tmp/compileGroovy/groovy-java-stubs/grails/util/BuildSettings.java:53: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal > public static final boolean GRAILS_APP_DIR_PRESENT = new java.lang.Boolean(false); > ^ So, at least the Boolean constructor is marked for removal. > 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)