groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <>
Subject Re: Groovy and JDK 11: Compilation issue
Date Mon, 30 Jul 2018 19:18:16 GMT
We use ASM 6.2 with the ASM API version set to ASM6 in Groovy 2.5.1.
We use ASM 6.2 with the ASM API version set to ASM7_EXPERIMENTAL in Groovy
3 alphas.

As per ASMs current strategy (archive protected by a spambot link - click
through and follow date):

This means that we currently fully support JDK10 in 2.5.x and JDK11 in 3.x
(bar some warnings and full support for modules which we are working on).

We slide those ASM versions along as new versions are released (after
testing of course). We have been conservative so far and not tried to put
the "EXPERIMENTAL" variants in final versions of Groovy. We can re-assess
that approach if we need to but it might introduce incompatibilities
between Groovy versions that we'd like to avoid.

Having said that, if you have simple code, you might find that it compiles
and runs fine on JDK11.
Or compiles on earlier versions but runs fine on JDK11 and 12 after that.

The master branch of Groovy builds and the runs 10,000+ tests on JDK11 last
I checked.

Cheers, Paul.

On Tue, Jul 31, 2018 at 3:33 AM Misagh Moayyed <> wrote:

> Has anyone here tried to use Apache Groovy 2.5.1 or 3.x and JDK 11
> together? I am trying to troubleshoot a build failure (Using Gradle 4.8, or
> 4.9) that manifests itself as:
> ...
> General error during class generation:
> java.lang.UnsupportedOperationException
> java.lang.UnsupportedOperationException
> at
> groovyjarjarasm.asm.ClassVisitor.visitNestMemberExperimental(
> at groovyjarjarasm.asm.ClassReader.accept(
> at groovyjarjarasm.asm.ClassReader.accept(
> ....
> Here is the full output of the failure:
> It appears to me that perhaps JDK 11 support for Groovy still has a few
> rough edges and may not be "officially" there. Could someone confirm this
> please?
> Thanks.
> --Misagh

View raw message