Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionYou shouldn't call this method because it is inherently unreliable.Use #parameterizeType insteadUse
BooleanClosureForMapPredicateinstead.UseBooleanClosurePredicateinstead.UseBooleanClosureWrapperinstead.UseBeanUtils.capitalize(java.lang.String)insteadthis method is unused, replaced withDelegatesToinference.UseJava17instead. Groovy 6.0 requires JDK 17+.UseJava17instead. Groovy 6.0 requires JDK 17+.UseJava17instead. Groovy 6.0 requires JDK 17+.UseJava17instead. Groovy 6.0 requires JDK 17+.
-
Deprecated ClassesClassDescriptionstatic mixins have been deprecated in favour of traits (trait keyword).Use
BooleanClosureForMapPredicateinstead.UseBooleanClosurePredicateinstead.UseBooleanClosureWrapperinstead.UseJava17instead. Groovy 6.0 requires JDK 17+.UseJava17instead. Groovy 6.0 requires JDK 17+.UseJava17instead. Groovy 6.0 requires JDK 17+.UseJava17instead. Groovy 6.0 requires JDK 17+.
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionStatic mixins have been deprecated in favour of traits.
-
Deprecated FieldsFieldDescriptionUse
GroovyLexer.VOCABULARYinstead.UseGroovyParser.VOCABULARYinstead.UseExtensionModuleScanner.MODULE_META_INF_FILEinstead
-
Deprecated MethodsMethodDescriptionthis flag is retained for compatibilityUse
Sql.buildSqlWithIndexedProps(String)insteaduse setKeepIgnorableWhitespaceThis method is not in use anymore. UseGroovyc.makeCompileUnit(GroovyClassLoader)instead.for removal since 5.0.0; useClassNode.getField(String)orClassNode.getDeclaredField(String)insteadUseCompileUnit.getClassesToCompile()insteadUseCompileUnit.getClassesToCompile()insteadUseStatement.getStatementLabels()instead for access to all labelsuse MethodNodeUtils#methodDescriptorWithoutReturnType(MethodNode) insteadYou shouldn't call this method because it is inherently unreliable.Use #parameterizeType insteadUseCompileStack.pushState()directly.org.codehaus.groovy.classgen.asm.util.LoggableTextifier.visitMethodInsn(int, String, String, String) UseWriterController.getClassVisitor()instead for clarityUseReturnAdder.visitMethod(MethodNode)instead.not used anymorenot used anymore, has no effectUseBeanUtils.capitalize(java.lang.String)insteadthis method is unused, replaced withDelegatesToinference.Use the new bootHandle-based approach instead.Use the new bootHandle-based approach instead.
-
Deprecated ConstructorsConstructorDescriptionUse
ParameterTypes(Class[])insteadThetoolparameter is unused; useGroovyRootDocBuilder(String[], List, Properties)instead.
-
Deprecated Enum Constants
ClassNode.getField(String)orClassNode.getDeclaredField(String)instead