groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schalk Cronje <ysb...@gmail.com>
Subject Re: Method "<clinit>" in traits class has illegal signature "(Ljava/lang/Class;)V"
Date Thu, 02 Jul 2020 16:28:48 GMT
And just having posted it, I found that Groovy 2.5.12 solved the issue.

On 2020/07/02 17:50, Schalk Cronje wrote:
>
> I have a library compiled with JDK8 which contains some traits of 
> which the gist one of them is
>
>     @CompileStatic
>     trait LocalStackFixture {
>     }
>
> It then gets used by something like
>
>     class LocalStackFixtureSpec extends Specification implements
>     LocalStackFixture {
>     }
>
> When I recompile the project with JDK11 I get
>
>     Method "<clinit>" in class 
> testfixtures/localstack/LocalStackFixture$Trait$Helper has illegal 
> signature "(Ljava/lang/Class;)V"
>
> This is Groovy 2.5.4.
>
> I don't really have a clue where to start looking.
>
> -- 
> Schalk W. Cronjé
> Twitter / Ello: @ysb33r

-- 
Schalk W. Cronjé
Twitter / Ello: @ysb33r


Mime
View raw message