Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Java 9 Illegal Access Warnings #246

Closed
ulzha opened this issue Feb 6, 2018 · 1 comment
Closed

Java 9 Illegal Access Warnings #246

ulzha opened this issue Feb 6, 2018 · 1 comment

Comments

@ulzha
Copy link

ulzha commented Feb 6, 2018

Users running styx cli (that depends on Apollo) on Java 9 get this

Bartoszs-MacBook-Pro:~$ styx e gabo-anonym-low-priority events.Nlu-Search-Api.NaturalLanguageQuery.gcs 2018-02-06T07
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/usr/local/Cellar/styx-cli/1.0.95/libexec/styx-cli-1.0.95.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
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

We could of course work around by enforcing Java 8, but this seems to have a simple version bump fix that's coming up, in google/guice#1085.

Related: spotify/styx#366, #242

@lepistone
Copy link
Member

I'm assuming that recent Guice fixed this? Please re-open if it's still the case. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants