I've noticed this with the Alpine Docker images <https://github.com/groovy/docker-groovy> I maintain. GROOVY-7906 <https://issues.apache.org/jira/browse/GROOVY-7906> documents this. What I've done for now is replace the shebang with Bash in the scripts. Longer term, I'm thinking it'd be best to replace the Bash-specific syntax with something that'll work with more interpreters.
On Thu, Sep 28, 2017 at 2:21 AM, Russel Winder <rus...@winder.org.uk> wrote: > Because Gradle can't cope with executing on Zulu 9 :-( I have to run > Gradle on > Zulu 8, but I can still execute on Zulu 9, well except for Groovy :-(( > > It looks like someone is assuming /bin/sh is actually Bash in the launch > scripts for groovy: > > > |> groovy -version > /home/users/russel/lib/JDK/groovy/bin/groovy: 281: > /home/users/russel/lib/JDK/groovy/bin/groovy: [[: not found > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.codehaus.groovy.reflection.CachedClass > (file:/home/users/russel/lib/JDK/groovy/lib/groovy-3.0.0-SNAPSHOT.jar) to > method java.lang.Object.finalize() > WARNING: Please consider reporting this to the maintainers of > org.codehaus.groovy.reflection.CachedClass > 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 > Groovy Version: 3.0.0-SNAPSHOT JVM: 9.0.0.15 Vendor: Azul Systems, Inc. > OS: Linux > > > I am unsure whether to suggest switching to Bash for launch or ensuring no > Bash features in the scripts. > > -- > Russel. > ============================================================ > ================= > Dr Russel Winder t: +44 20 7585 2200 voip: > sip:russel.win...@ekiga.net > 41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk > London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder