groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-9070) OpenJdk 11 Illegal reflective access
Date Sun, 07 Apr 2019 02:34:00 GMT

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

Paul King commented on GROOVY-9070:
-----------------------------------

The Java libraries return an {{UnmodifiableMap}} when you call {{getenv()}}. There are some
options for setting environment variables when kicking off processes but you don't want to
go down that path anyway since as per the link Daniel gave earlier, that environment variable
is only used within the Groovy startup scripts. You'd need to replicate the resulting options
({{--add-opens}}) that those scripts set for however you start java.

> OpenJdk 11 Illegal reflective access
> ------------------------------------
>
>                 Key: GROOVY-9070
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9070
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-jdk
>    Affects Versions: 2.5.6
>            Reporter: Pruteanu Dragos
>            Priority: Major
>
> I wrote a command line application which uses Groovy 2.5.6. I tested the issue also with
Groovy 3.0.0.alpha4 and it still occurs. I tested with OpenJdk11
> The message below is showing when simply instantiating the class groovy.lang.Binding().
> Is it any fix for this ?
>  
> WARNING: An illegal reflective access operation has occurred
>  WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 ([file:/C:/Users/dprutean/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.5.6/6936e700f0fb1b50bac0698ada4347a769d40199/groovy-2.5.6.jar|file:///C:/Users/dprutean/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.5.6/6936e700f0fb1b50bac0698ada4347a769d40199/groovy-2.5.6.jar])
to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
>  WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
>  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective
access operations
>  WARNING: All illegal access operations will be denied in a future release
>  O



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

Mime
View raw message