Reinstate -Werror for Groovy compilation
This commit partially reverts cf2429b0f0
in order to reinstate -Werror for Groovy compilation in spring-beans.
The `decorating` field in GroovyDynamicElementReader has been changed
from boolean to Boolean in order to avoid the JDK 17 deprecation warning
for use of `new Boolean(false)` which the Groovy compiler apparently
uses behind the scenes when compiling Groovy source code.
This commit is contained in:
@@ -23,8 +23,7 @@ sourceSets {
|
||||
}
|
||||
|
||||
compileGroovy {
|
||||
// Groovy generates Java code with "new Boolean" usage which is deprecated on JDK 17
|
||||
// options.compilerArgs += "-Werror"
|
||||
options.compilerArgs += "-Werror"
|
||||
}
|
||||
|
||||
// This module also builds Kotlin code and the compileKotlin task naturally depends on
|
||||
|
||||
@@ -40,7 +40,7 @@ class GroovyDynamicElementReader extends GroovyObjectSupport {
|
||||
|
||||
private final GroovyBeanDefinitionWrapper beanDefinition
|
||||
|
||||
protected final boolean decorating;
|
||||
protected final Boolean decorating;
|
||||
|
||||
private boolean callAfterInvocation = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user