Changelog for Groovy 4.0.22
Bug
- [GROOVY-11144] - MissingPropertyEx when accessing private static field in closure of same class
- [GROOVY-11223] - STC: error message for inaccessible setter is not too helpful
- [GROOVY-11352] - Reference to this in ctor before this/super call false positive
- [GROOVY-11356] - STC: missing property error for implicit-this reference to private super field or method
- [GROOVY-11358] - STC: error for abstract class private or package-private field access
- [GROOVY-11362] - implicit type of catch parameter is written as Object
- [GROOVY-11363] - Bootstrap method error for method reference used with a primitive literal
- [GROOVY-11364] - STC loses generic specialization on inheritance
- [GROOVY-11368] - SC: map access different for parameter and local variable of same type
- [GROOVY-11369] - STC: map properties "class" and "empty" indicated as read-only
- [GROOVY-11370] - STC: extension method cannot provide map property (read mode)
- [GROOVY-11372] - STC: write property via extension method
- [GROOVY-11373] - IllegalAccessError writing package-private property of other-package map-based type
- [GROOVY-11378] - array or collection coercion of non-collection iterable produces single-element result
- [GROOVY-11384] - STC: map property access within closure
- [GROOVY-11385] - reference to the constructor of an abstract class is not detected
- [GROOVY-11387] - STC: entry vs field for map-based types
- [GROOVY-11390] - access error for inaccessible getter of super class
- [GROOVY-11399] - STC: inferred type of closure delegate, owner and thisObject
- [GROOVY-11401] - STC: inferred type of name within closure (delegate property versus owner field) *
- [GROOVY-11414] - Compiler does not promote/check lambda results when required
- [GROOVY-11427] - unexpected crash in class generation "On receiver: x with message: getAt and arguments: 0"
- [GROOVY-9850] - STC: add error for write of private or package-private field of super class
Dependency upgrade
- [GROOVY-11395] - Bump jackson to 2.17.1
- [GROOVY-11396] - Bump picocli to 4.7.6
- [GROOVY-11416] - Bump antlr to 4.13.1.4
- [GROOVY-11417] - Bump antlr to 4.13.1.5
- [GROOVY-11418] - Bump hsqldb to 2.7.3 (test dependency)
- [GROOVY-11419] - Bump slf4j to 2.0.13 (test and standard install dependency)
- [GROOVY-11420] - Bump jqwik to 1.8.5 (test dependency)
- [GROOVY-11424] - Bump spotbugs to 4.8.6
- [GROOVY-11425] - Bump gson to 2.11.0 (test dependency)
- [GROOVY-11426] - Bump javaparser to 3.26.1
Improvement
- [GROOVY-11360] - Issue a warning when accessing static fields that are "shadowed" by get() methods
- [GROOVY-11415] - Bytecode for identity
* potentially breaking change (read issue for details - even minor differences are sometimes flagged as potentially breaking changes)