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

Marcin Zajaczkowski edited comment on GROOVY-9505 at 4/13/20, 2:28 PM:
-----------------------------------------------------------------------

And this comes back to my original question to Paul :).

> Can Groovy (3.0.3) interact with {{record}} defined in Java 14 production 
> code?

>  (assuming ASM_API_VERSION in 
>[CompilerConfiguration|https://github.com/apache/groovy/blob/a9946449a943fcf55204f8bbfaa71f3419500f2a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java#L125]
> is changed to Opcodes.ASM8)

 

It seems that no and there is some extra work required on the Groovy side to 
deal with that bytecode.

 

**Update**. hmm, I responded to the comment that was deleted:
{code:java}
_/home/kamil/Documents/projects/priv/weatherinformer/src/test/groovy/com/twitter/kamilyedrzejuq/weather/domain/SampleData.java:17:
 error: cannot find symbol_
 _return FetchCityWeatherCommand.of(cityName);_
 _^_
 _symbol: method of(String)_ {code}
 


was (Author: szpak):
And this comes back to my original question to Paul :).

> Can Groovy (3.0.3) interact with {{record}} defined in Java 14 production 
> code?

>  (assuming ASM_API_VERSION in 
>[CompilerConfiguration|https://github.com/apache/groovy/blob/a9946449a943fcf55204f8bbfaa71f3419500f2a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java#L125]
> is changed to Opcodes.ASM8)

 

It seems that no and there is some extra work required on the Groovy side to 
deal with that bytecode.

 

**Update**. I responded to the comment that was deleted:
{code:java}
_/home/kamil/Documents/projects/priv/weatherinformer/src/test/groovy/com/twitter/kamilyedrzejuq/weather/domain/SampleData.java:17:
 error: cannot find symbol_
 _return FetchCityWeatherCommand.of(cityName);_
 _^_
 _symbol: method of(String)_ {code}
 

> Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in 
> Spock tests
> -----------------------------------------------------------------------------------------
>
>                 Key: GROOVY-9505
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9505
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 3.0.0-beta-2
>         Environment: Ubuntu 20.04
> Intellij IDEA IntelliJ IDEA 2020.1 (Ultimate Edition)
> Build #IU-201.6668.121, built on April 8, 2020
> Runtime version: 11.0.6+8-b765.25 amd64
> Adopt Open JDK 14.0.0.hs-adpt
>            Reporter: Kamil Jedrzejuk
>            Priority: Critical
>         Attachments: Screenshot from 2020-04-12 22-23-10.png, Screenshot from 
> 2020-04-12 22-23-52.png, image-2020-04-13-15-35-10-149.png, 
> image-2020-04-13-15-35-15-834.png, image-2020-04-13-15-51-39-107.png
>
>   Original Estimate: 720h
>          Time Spent: 10m
>  Remaining Estimate: 719h 50m
>
> I have a problem with integration tests.  I've updated  Java from 11 to 14.
> I can compile my application, but I can't run a integration tests.
> I'm using a Gradle 6.3
> Open JDK 14
> Spring Boot 2.4
> 2.0-M2-groovy-3.0
>  
> The code you can find here 
> [https://github.com/KamilJedrzejuk/weatherinformer/tree/develop]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to