Trivadis / plsql-cop-validators

db* CODECOP Validators
Other
9 stars 5 forks source link

"WARNING: An illegal reflective access operation has occurred" building custom validator #40

Closed mhoys closed 3 years ago

mhoys commented 3 years ago

Hi, I'm trying to build a custom validator from the 4.1.1. source code, and I'm getting the following warning: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/C:/Users/mhoys/.m2/repository/com/google/inject/guice/3.0/guice-3.0.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

Any idea if this error is critical, or can it be ignored? I tried with a higher version of Java, but I'm getting the same warning.

Following tools were used:

Thanks, Matthias

PhilippSalvisberg commented 3 years ago

You get this error during build time only. You can ignore it. It's caused by Xtext / Xtend 2.25.0 which still use Google Guice 3.0.

At runtime artifacts we use Google Guice 5.0.1 which does not throw this warning anymore. I expect that future versions of Xtext / Xtend will update the version for Guice.

mhoys commented 3 years ago

Ok, thanks Philipp!