Strange message after update to Java 11 JDK LTS
I have upgraded to Java 11 JDK LTS version, everytime i run a sprinboot application i get this message:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/mudasar/.m2/repository/org/codehaus/groovy/groovy/2.4.15/groovy-2.4.15.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
This message dosent appear when i had Java 8 JDK LTS.
What is this ? Is it anything i can do to fix it?
Please sign in to leave a comment.
You may need to update your Gradle version to a more recent one that is compatible with Java 11.
But i dont use Gradle, only maven. How can i update gradle ?
Your project has dependency on Groovy 2.4.15, you may need to use a more recent Groovy version. Check the dependencies in pom.xml.
I dont have any dependencies for Groovy in pom.xml file...
Check the dependency diagram to find which other library depends on Groovy.
https://stackoverflow.com/a/32450654/104891