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

Java 9 Illegal reflective access groovy 2.4.13 #598

Closed
hheg opened this issue Mar 24, 2018 · 5 comments
Closed

Java 9 Illegal reflective access groovy 2.4.13 #598

hheg opened this issue Mar 24, 2018 · 5 comments

Comments

@hheg
Copy link

hheg commented Mar 24, 2018

[INFO] --- spotbugs-maven-plugin:3.1.1:spotbugs (spotbugs) @ project ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/home/hheg/.m2/repository/org/codehaus/groovy/groovy/2.4.13/groovy-2.4.13.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
[INFO] 
[INFO] <<< spotbugs-maven-plugin:3.1.1:check (default) < :spotbugs @ project <<<
[INFO] 

The project is a parent and of a pom type.

This error is probably related to https://issues.apache.org/jira/browse/GROOVY-8339

@KengoTODA
Copy link
Member

Is it our problem? Can you reproduce it with latest Gradle that includes the fix?

@ptahchiev
Copy link

I don't think it's a gradle issue. The reporter clearly uses the maven plugin.

@hheg
Copy link
Author

hheg commented Apr 28, 2018

I’m not using Gradle at all, nor groovy, and this error still occurs with spotbugs 3.1.3.

@hheg
Copy link
Author

hheg commented Apr 28, 2018

If you want to look at it, check out the project https://github.com/hheg/jitstatic

@KengoTODA
Copy link
Member

Thanks, I understand, then could you move to https://github.com/spotbugs/spotbugs-maven-plugin?
That is the project for spotbugs maven plugin.

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

No branches or pull requests

3 participants