groovy-notifications mailing list archives

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

     [ https://issues.apache.org/jira/browse/GROOVY-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henrik updated GROOVY-8779:
---------------------------
    Description: 
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}

  was:
I have a Java/Groovy project in IntelliJ IDEA 2018.2.3 with Groovy 2.5.1.  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}


> 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
>            Priority: Major
>
> 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}



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

Mime
View raw message