magarena
magarena copied to clipboard
Update Groovy when it is fixed (to remove "Illegal reflective access" warning)
A side discovery from #1367.
I get an "Illegal reflective access" Java warning on Debian "testing/unstable" (buster/sid) with OpenJDK 9 (b181-4).
Note that this was tested with a packaged beta version of OpenJDK 9 (see details below). This should be re-tested again once OpenJDK 9 final is packed for Debian testing.
-> % /usr/lib/jvm/java-9-openjdk-amd64/bin/java -jar ./Magarena.jar
Data folder : /home/allentiak/opt/Magarena-1.89/Magarena
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/allentiak/opt/Magarena-1.89/lib/groovy-all-2.4.12.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
Using random seed 4822673713284
-> % apt list --installed|grep openjdk-9
openjdk-9-demo/unstable,testing,now 9~b181-4 amd64 [installed]
openjdk-9-doc/unstable,unstable,testing,testing,now 9~b181-4 all [installed]
openjdk-9-jdk/unstable,testing,now 9~b181-4 amd64 [installed]
openjdk-9-jdk-headless/unstable,testing,now 9~b181-4 amd64 [installed,automatic]
openjdk-9-jre/unstable,testing,now 9~b181-4 amd64 [installed]
openjdk-9-jre-headless/unstable,testing,now 9~b181-4 amd64 [installed,automatic]
Thanks for the report. Good to hear that sounds works though. There is not much we can do as it is due to the current release of groovy. Will rename this to remind us to upgrade the dependency when a fixed version of groovy is released.
Groovy has been updated... Have you tried v 2.4.14?
According to their bug tracker, this issue is currently still open, see https://issues.apache.org/jira/browse/GROOVY-8339
Any updates on the fix for groovy?
The groovy jira page mentioned it is fixed in 3.0 beta 1. We'll update when 3.0 is released.
I will check out the beta. Thanks so much.
@melvinzhang I've just noticed Groovy 3.x has been out for a few months already.
Maybe it's time to update?
https://github.com/apache/groovy/releases
Sure, but I'm having some problems updating the build.xml, currently we are using groovy-all, but there isn't an appropriate jar file in https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/3.0.2/
What repo:branch are you using for testing this?
this repo, master branch
currently we are using groovy-all, but there isn't an appropriate jar file in https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/3.0.2/
Hmmm...
Is this the only jar you tried? Have you tried with another one? Which one(s)?
Groovy 3.0.x provides many jars... Maybe the functionality you need from 2.4 in 3.0 simply got moved somewhere else... https://www.youtube.com/watch?v=oyLBGkS5ICk&t=1946 ;-)