Skip to content

4.8.0 Release Notes

Eric Milles edited this page Feb 1, 2023 · 2 revisions

Greclipse 4.8.0 was released on December 31st 2022.

New and Noteworthy

Support for new versions of Groovy

  • Groovy 4.0.7

  • Groovy 3.0.14

  • Groovy 2.5.20

    📋 The new antlr4-based Parrot Parser is disabled by default. To enable it, add -Dgroovy.antlr4=true to your eclipse.ini file after the -vmargs line or add a compiler config script to your project with configuration.pluginFactory = org.codehaus.groovy.control.ParserPluginFactory.antlr4(). Please note that parser recovery is not implemented for the Parrot Parser, so your editing experience may be sub-par in this mode.

Support for new version of Eclipse

Support for Java 19

As of Eclipse 4.26, Java 19 is supported. It can be combined with Groovy 4.

Compiler Fixes

Content Assist

  • suppress content assist proposals for creating getters and setters within enum body

    Current:

    Previous:

  • "Replace method call with property expression" inserts delegate qualifier

    class C {
      def p
    }
    void test(p) {
      new C().with {
        setP(null) // Ctrl+Shift+, for "setP"
      }
    }

    Current:

    Previous:

  • improved editor experience for type-checking extension scripts

    Current:

    Previous:

  • fixed hover display for type parameter references

    Current:

    Previous:

  • improved hover display for constructor contributions

    Current:

    Previous:

  • "Exchange left and right operands" supports === and !==

  • no more proposals for super-class methods of extensions

Syntax Highlighting and Type Inferencing

  • improved @Canonical, @Immutable, @RecordType and @TupleConstructor support

    Current:

    Previous:

  • @Grab dependency extension methods

    Current:

    Previous:

  • true and false within gstring

    Current:

    Previous:

  • parameterized static methods

    Current:

    Previous:

  • enum static initializers

    Current:

    Previous:

  • DSLD-provided and other method overloads

    Current:

    Previous:

AST Viewer

The Groovy AST Viewer view shows a lot of properties for a ClassNode. Often the node has a redirect and the properties previously shown are for the redirect (primary type). The "unresolvedInterfaces" and "unresolvedSuperClass" properties require an extra parameter to get the non-redirect value.

Primary type Redirect type (aka type reference)

Resolved Issues

  • 421: @Canonical, @Immutable, @RecordType and @TupleConstructor not properly supported
  • 820: Suppress content assist proposals for creating getters and setters within enum body
  • 1308: Quick Assist "Replace method call with property expression" inserts wrong qualifier for delegate property
  • 1397: Problem with search path for type-checking extensions
  • 1399: Add support for Eclipse 4.26 (2022-12)
  • 1400: Add support for Java 19
  • 1402: Improve editor experience for type-checking extension scripts
  • 1403: Improve editor experience for @Grab dependencies with extension methods
  • 1404: Fix syntax highlighting for true and false within gstring
  • 1406: Add support for Groovy 4.0.6
  • 1407: Performance degradation
  • 1408: Error when using annotation collector
  • 1409: NPE: transformLoader is null when using macro
  • 1410: Editor doesn't add import statements
  • 1411: Regression in array-like map access
  • 1412: ClassCastException at runtime in with closure
  • 1413: Fix content assist and type inferencing for extension methods
  • 1414: Compile cancel request not honored
  • 1417: Fix type inferencing, syntax highlighting and content assist for enum static initializers
  • 1418: DSLD: fix hover display for constructor contributions
  • 1419: Regression: STC is losing generics information in inheritance
  • 1420: Exchange left and right operands support for === and !==
  • 1422: Fix code hover for class type parameter references
  • 1423: AST Viewer ClassNode properties
  • 1424: Fix type inferencing for parameterized methods
  • 1426: Add support for Groovy 4.0.7
  • 1427: Add support for Groovy 3.0.14
  • 1428: Add support for Groovy 2.5.20
  • 1430: Fix type inferencing and code select for DSLD and other method overloads

Update Sites

Use one of the following update sites depending on your version of Eclipse:

Archives of these update sites are also available: