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

Warning "illegal reflective access" when used with JDK 11 #162

Open
lbruun opened this issue Sep 14, 2021 · 0 comments
Open

Warning "illegal reflective access" when used with JDK 11 #162

lbruun opened this issue Sep 14, 2021 · 0 comments

Comments

@lbruun
Copy link
Contributor

lbruun commented Sep 14, 2021

When using JDK 11 I get the following warning:

14:54:54 [INFO] Using jgitver configuration file: /tmp/workspace/e.kutnot_develop-NAASHCQUDR4LVAYMKRQMG5YDHZTILJZ33S7CQGOI6NFXSMDBVNXQ/.mvn/jgitver.config.xml
14:54:54 [INFO] Using jgitver-maven-plugin [1.8.0] (sha1: 3f3523c5f7540865e3ad66fc9ef1c9daa52a6e6b)
14:54:58 WARNING: An illegal reflective access operation has occurred
14:54:58 WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/home/jenkins/m2repo/org/codehaus/groovy/groovy/2.4.21/groovy-2.4.21.jar) to method java.lang.Object.finalize()
14:54:58 WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
14:54:58 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
14:54:58 WARNING: All illegal access operations will be denied in a future release

A bit of Google'ing reveals that the warning will disappear if Groovy 3.x or later is used.

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

No branches or pull requests

1 participant