Changelog for Groovy 3.0.11

Bug

  • [GROOVY-10089] - SC: GroovyCastException for map value as constructor for Collection
  • [GROOVY-10143] - NullPointerException while compiling a trait
  • [GROOVY-10166] - Cannot call T#method(arg) with arguments <arg>
  • [GROOVY-10201] - JDK 17: class String1_groovyProxy cannot implement sealed interface java.lang.constant.ConstantDesc
  • [GROOVY-10227] - STC computes an imprecise LUB when involving two parameterized types implementing the same interface
  • [GROOVY-10230] - Unexpected generics parameter arity mismatch in the "instruction selection" phase
  • [GROOVY-10235] - STC: Generic type of Set not correctly resolved when calling ConcurrentHashMap.newKeySet()
  • [GROOVY-10267] - STC reports wrong message when encoutering wildcard types
  • [GROOVY-10280] - Type variable substitution does not work well when running into chain of field accesses
  • [GROOVY-10282] - STC: false positive for BiFunction and BinaryOperator with same type parameter
  • [GROOVY-10324] - STC is unable to infer type variable when combining parameterized types and the diamond operator
  • [GROOVY-10330] - STC instantiates type variable with a wrong type when calling an instance method of the same class
  • [GROOVY-10343] - STC fails to infer dependent type variable
  • [GROOVY-10357] - STC crashes on compiling an abstract method with default arguments and lambda
  • [GROOVY-10363] - STC produces compile-time error on encoutering bounded type parameter with conditional
  • [GROOVY-10364] - STC does not type check method call when using bounded type parameter as a type argument
  • [GROOVY-10405] - @AutoClone breaks in Java17 for File properties
  • [GROOVY-10481] - Groovy 3.x - @AutoClone breaks in Java17 for File properties
  • [GROOVY-10482] - Incorrect inference of type argument of parameterized method call
  • [GROOVY-10495] - Invalid newlines generated by XmlTemplateEngine
  • [GROOVY-10519] - v9 ClassFinder closes existing FileSystems that it doesn't own
  • [GROOVY-10520] - Incorrect line numbers for Closure classes in AstNode
  • [GROOVY-10522] - stubgen: Extra method created for Boolean property
  • [GROOVY-10535] - IF condition on empty Collection has different behavior than null Collection
  • [GROOVY-10552] - @AutoImplement for method with type parameter(s)
  • [GROOVY-10556] - TypeChecked/CompileStatic index out of bounds
  • [GROOVY-10557] - TypeChecked/CompileStatic tries to cast to wrong type in nested closure
  • [GROOVY-10558] - Wrong argument type when using static method from nested class
  • [GROOVY-10570] - AnnotationCollector produces unspecified errors when used in Java
  • [GROOVY-10576] - STC: map putAll fails to match "?" to "Object"
  • [GROOVY-10579] - Type '[I' is not assignable to reference type when using Groovy 3.0.10
  • [GROOVY-10583] - Stub generator handles method type parameter bounds incorrectly
  • [GROOVY-10585] - `@AutoFinal` does not use annotation parameters when used with `ASTTransformationCustomizer`
  • [GROOVY-10593] - Groovydoc links to wrong type
  • [GROOVY-10596] - IF-condition evaluation on the non-null object sometimes doesn't return true
  • [GROOVY-10598] - BUG! exception in phase 'instruction selection' unexpected NullPointerException
  • [GROOVY-10601] - Incompatible generic argument type when combining conditionals and bounded type parameters
  • [GROOVY-10603] - LUB operation returns incorrect result
  • [GROOVY-10611] - Static fields not initialized when accessed from another class
  • [GROOVY-10624] - Nested diamond operators do not work correctly although the expected type argument is known
  • [GROOVY-10626] - --enable-preview doesn't show in CLI/help for groovysh
  • [GROOVY-10628] - Elvis assignment operator loses type information
  • [GROOVY-10634] - Regular expressions cause groovysh 3.0.10, JDK 17 to crash
  • [GROOVY-10645] - groovy-dateutil-3.0.11.jar is present in SDK distribution, but is not available in maven central
  • [GROOVY-11000] - Unable to load FastStringService in OSGI Environment in Groovy-all: 3.0.11 version
  • [GROOVY-6919] - Static compilation fails with multiple bounds generics
  • [GROOVY-7288] - @Delegate to object by Class which implementing trait with fields complains 'abstract method in a non-abstract class'
  • [GROOVY-7419] - Static Compilation with Diamond of local EnumMap<>
  • [GROOVY-7507] - Cannot assign value of type java.lang.Object in ternary operator with null
  • [GROOVY-8243] - SAM trait coercion via middle interface
  • [GROOVY-8244] - SAM trait coercion with default parameters
  • [GROOVY-8409] - Static compilation with generic function wrapping BiFunction causes GroovyCastException
  • [GROOVY-9033] - Bad code green: empty list literal with each method
  • [GROOVY-9853] - ClassFormatError using method reference on interface target
  • [GROOVY-9948] - Cannot infer the correct type in the presence of diamond operator
  • [GROOVY-9956] - Cannot infer correct type argument when passing a subtype of the declared type argument
  • [GROOVY-9963] - Generic type of field is not instantiated
  • [GROOVY-9972] - LUB does not work correctly in case of ternary operator
  • [GROOVY-9983] - Type argument inference does not work in ternary operator
  • [GROOVY-9995] - Wrong inference inside closure when having a bounded type parameter

Dependency upgrade