You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/04/25 10:19:00 UTC
[jira] [Resolved] (GROOVY-9073) Support preview features in
compiled classes
[ https://issues.apache.org/jira/browse/GROOVY-9073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-9073.
-------------------------------
Resolution: Fixed
I merged and did a few tweaks. There are some further simplifications that might be possible down the track. I remove the case where preview was added for bytecode versions less that 8. It wouldn't be allowed by the JDK until JDK 12 anyway.
> Support preview features in compiled classes
> --------------------------------------------
>
> Key: GROOVY-9073
> URL: https://issues.apache.org/jira/browse/GROOVY-9073
> Project: Groovy
> Issue Type: Improvement
> Components: Compiler
> Reporter: Keegan Witt
> Assignee: Keegan Witt
> Priority: Major
> Fix For: 3.0.0-beta-1, 2.5.7
>
> Attachments: groovy9073_tweaks.patch
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> In order to support the preview features ([JEP 12|https://openjdk.java.net/jeps/12]), we need a new compiler flag to set the [V_PREVIEW|https://asm.ow2.io/javadoc/org/objectweb/asm/Opcodes.html#V_PREVIEW] opcode (to achieve the equivalent of {{--enable-preview}} mentioned in [JDK-8195734|https://bugs.openjdk.java.net/browse/JDK-8195734]).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)