Re: AST Transformation in Groovy 4.0.x VS 3.0.x

Adrien Guichard <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CAJHGhwCPwUHbENb99UjDGBEgEeSJVCOLs8DUX_aiNMHM6zM+4A@mail.gmail.com>
Le dim. 14 avr. 2024 à 17:44, MG <mgbiz-yvYIh6MZAuFWk0Htik3J/[email protected]> a écrit :
>
> Just a long shot, but have you checked if this error might be due to a
> broken build or similar, i.e. class files being modified in parallel or
> source files having been modified while the build process was running ?

I limit the number of spanning processes to 6 during gradle build, and
the issue looks systematic.

If this is the issue, I will open a bug report. I will restrict to 1
concurrent process during build to test.

> We see "ArrayIndexOutOfBoundsException: size==0" exceptions from time to
> time during IntelliJ Groovy builds, and the cause is typically as stated
> above. Building anew (sometimes rebuilding a module or the whole project
> is required) typically fixes these... (we had some which were actual
> bugs in the Groovy compiler, but these are very rare).

I removed '.gradle' from 'buildSrc' and from my home. No changes...

> On 14/04/2024 15:54, Adrien Guichard wrote:
> > Le dim. 14 avr. 2024 à 12:18, Paul King <[email protected]> a écrit :
> >> Can you give us more of the stack trace where Groovy is failing for
> >> the "size==0" error?
> > java.lang.ArrayIndexOutOfBoundsException: size==0
> > at org.codehaus.groovy.classgen.asm.OperandStack.ensureStackNotEmpty(OperandStack.java:279)
> > at org.codehaus.groovy.classgen.asm.OperandStack.replace(OperandStack.java:271)

[. . .]

> >
> >> I would in general expect very few changes needed between 3 and 4.
> > I was wrong, Grails 6.2.0 is Groovy 3.0.21 (from 3.0.11)



--
Adrien Guichard
+ 33 6 10 78 75 88
https://taack.org
29 Boulevard Edgar Quinet
75014 Paris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.