Re: AST Transformation in Groovy 4.0.x VS 3.0.x
Paul King <[email protected]>
| Newsgroups | gmane.comp.lang.groovy.user |
|---|---|
| Message-ID | <CAMbkE7Tzews9XhD6oni7Ldqo0pHnH8Vjdir+1BvrzpEFoFcO_Q@mail.gmail.com> |
Can you give us more of the stack trace where Groovy is failing for the "size==0" error? I would in general expect very few changes needed between 3 and 4. Groovy's built-in AST transforms had almost no changes. Cheers, Paul. On Sun, Apr 14, 2024 at 11:31 AM Adrien Guichard <[email protected]> wrote: > > Is there any guideline to port AST Transformations for Groovy 4.0 ? > > I am porting Taack-UI to Groovy 4.0, and I am stuck with errors like: > [. . . ] > General error during instruction selection: size==0 > [. . .] > > At the moment I just added casts at ReturnStatements. (See https://github.com/Taack/infra/blob/main/taack-ui/src/main/groovy/taack/ast/model/TaackFieldEnumASTTransformation.groovy) > > Thanks ! > > -- > Adrien Guichard > + 33 6 10 78 75 88 > https://taack.org > 29 Boulevard Edgar Quinet > 75014 Paris > France