Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflection Warning #190

Open
milleruntime opened this issue Feb 7, 2022 · 1 comment
Open

Reflection Warning #190

milleruntime opened this issue Feb 7, 2022 · 1 comment
Labels

Comments

@milleruntime
Copy link
Contributor

I am seeing this when building the testing jar. WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.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$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
@ctubbsii
Copy link
Member

ctubbsii commented Feb 7, 2022

This happens for a lot of our dependencies. These warnings come from newer Java releases that are incrementally locking down use of methods internal to Java that are JVM-implementation specific and not part of the Java specifications for its public API. The best way to handle this is to update our dependencies to ones that were designed for use with newer Java releases. I'm not sure there's anything else we can do about these.

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

No branches or pull requests

2 participants