Changelog for Groovy 5.0.0-alpha-6

Bug

  • [GROOVY-7984] - @SelfType does not allow trait to be added dynamically
  • [GROOVY-11284] - Generated size() method on records performs unnecessary boxing
  • [GROOVY-11285] - Generated toList() and toMap() methods on records perform unnecessary wrapping
  • [GROOVY-11290] - STC: multiple instanceof checks produce different results
  • [GROOVY-11292] - Class without sealed parent cannot be non-sealed
  • [GROOVY-11293] - Error "BUG! At this point argument array length and parameter array length should be the same"
  • [GROOVY-11296] - shuffled modifies input array
  • [GROOVY-11297] - Fail to identify duplicate constructor declaration
  • [GROOVY-11299] - ClassNode getField(String), getMethods(String) and others return from super interface when class uses extends
  • [GROOVY-11301] - References to inaccesible methods with static compilation leads to runtime error
  • [GROOVY-11302] - Method call with type args loses information within trait
  • [GROOVY-11304] - The script running reports a null pointer.
  • [GROOVY-11308] - DefaultGroovyMethods#unique now returns null for empty or 1 element input
  • [GROOVY-11311] - Groovy Closure not retaining param annotations, but only for the default single object param case
  • [GROOVY-11313] - Closure owner seems to be overwritten
  • [GROOVY-11323] - Interface default method and static import precedence
  • [GROOVY-11325] - @NamedVariant self referential default values are not correctly resolved when calculations are involved

Dependency upgrade

  • [GROOVY-11300] - Bump asciidoctor gradle plugins to 4.0.2 (build dependency)
  • [GROOVY-11315] - Bump checkstyle to 10.13.0 (build dependency)
  • [GROOVY-11316] - Bump Codenarc to 3.4.0-groovy-4.0 (build dependency)
  • [GROOVY-11317] - Bump slf4j to 2.0.12 (test and standard install dependency)
  • [GROOVY-11318] - Bump JUnit Jupiter/JUnit Platform to 5.10.2/1.10.2
  • [GROOVY-11321] - Bump log4j2 version to 2.23.0 (test dependency)
  • [GROOVY-11322] - Bump logback-classic to 1.5.0 (test dependency)
  • [GROOVY-11324] - Bump qdox to 2.1.0

Improvement

  • [GROOVY-11289] - STC: error message for improper property initialization includes internal "<UnionType:"
  • [GROOVY-11295] - Optimise generated next() and previous() in enums

New Feature

  • [GROOVY-11306] - Provide left/right shift operators for BitSet

Wish

  • [GROOVY-11314] - JsonOutput Pretty Print always escapes characters