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

Chad Wilson commented on GROOVY-10145:
--------------------------------------

Should add that the best workaround I have at the moment is

In gradle.properties (to allow me to add opens at runtime)
{code:java}
org.gradle.jvmargs=--add-opens=java.base/jdk.internal.module=ALL-UNNAMED {code}

In Groovy code prior to using the "offending" pieces (to allow me to know the 
dynamic proxy module)
{code:java}
jdk.internal.module.Modules.addOpensToAllUnnamed(artifactRootVerification.class.module,
 artifactRootVerification.class.packageName) {code}
This is obviously slightly dodgy :)

> Support JDK16
> -------------
>
>                 Key: GROOVY-10145
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10145
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 4.0.0-beta-1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to