groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8779) Groovy 2.5.2 triggers a bug in IntelliJ IDEA
Date Wed, 12 Sep 2018 11:15:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611933#comment-16611933
] 

Henrik commented on GROOVY-8779:
--------------------------------

I'm currently unable to switch to using java 8, since the code base is thoroughly changed
to java10.  I am specifying bytecode version 10 a couple of places in the intellij preferences
& project settings.

I tried using 2.5.3-SNAPSHOT, and now it works.  Yay!  Do you know which specific change
in this version that fixed the issue?

> Groovy 2.5.2 triggers a bug in IntelliJ IDEA
> --------------------------------------------
>
>                 Key: GROOVY-8779
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8779
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.2
>         Environment: Mac OSX High SIerra
>            Reporter: Henrik
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 3.0.0-alpha-4, 2.5.3
>
>
> I have a Java 10.0.2 / Groovy 2.5.1 project in IntelliJ IDEA 2018.2.3.  If I upgrade
it to 2.5.2, it is not able to build the project anymore. 
> It fails with:
> {code:java}
> Error:Groovyc: While compiling shared-test-helpers: BUG! exception in phase 'class generation'
in source unit '/Users/me/myproject/shared/test-helpers/src/main/java/me/shared/test/helpers/pages/PageSnapshot.groovy'
Bytecode version [10] is not supported by the compiler
>     at org.codehaus.groovy.classgen.asm.WriterController.chooseBytecodeVersion(WriterController.java:169)
>     at org.codehaus.groovy.classgen.asm.WriterController.init(WriterController.java:98)
>     at org.codehaus.groovy.classgen.AsmClassGenerator.visitClass(AsmClassGenerator.java:210)
>     at org.codehaus.groovy.control.CompilationUnit$18.call(CompilationUnit.java:850)
>     at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1087)
>     at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:631)
>     at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:609)
>     at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:586)
>     at org.jetbrains.groovy.compiler.rt.GroovyCompilerWrapper.compile(GroovyCompilerWrapper.java:62)
>     at org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.runGroovyc(DependentGroovycRunner.java:118)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.jetbrains.groovy.compiler.rt.GroovycRunner.intMain2(GroovycRunner.java:91)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>     at org.jetbrains.jps.incremental.groovy.InProcessGroovyc.runGroovycInThisProcess(InProcessGroovyc.java:160)
>     at org.jetbrains.jps.incremental.groovy.InProcessGroovyc.lambda$runGroovyc$0(InProcessGroovyc.java:89)
>     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
>     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
>     at java.base/java.lang.Thread.run(Thread.java:844){code}
> See also https://youtrack.jetbrains.com/issue/IDEA-198689



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message