[ https://issues.apache.org/jira/browse/GROOVY-9073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16822978#comment-16822978 ]
Paul King commented on GROOVY-9073: ----------------------------------- Setting the environment variable {{JAVA_OPTS}} to also include {{--enable-preview}} is enough for the cases I mentioned above to work and I believe is sufficient for groovyConsole also. I don't think groovydoc is currently affected. I haven't checked joint compilation passes the correct info through to the java compiler yet. > 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 20m > 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)