-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[core] WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass #4674
Comments
I also meet this issue when using CPD GUI, and the GUI can't be open: Affects PMD Version: 7.0.0-rc3 Description: Sample demonstrating the issue: ...\pmd-bin-7.0.0-rc3\bin> ./pmd.bat cpd-gui
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/.../pmd-bin-7.0.0-rc3/lib/groovy-2.4.21.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 I use the following Java version: and I use WINDOWS11 |
jsotuyod
added a commit
to Monits/pmd
that referenced
this issue
Oct 21, 2023
- We now support parsing all Groovy features from Groovy 3 and 4 - Support for 5 is not included as it would not work with Java 8 - Along the way, this also fixes pmd#4674
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affects PMD Version:
Tested on https://github.com/pmd/pmd/releases/download/pmd_releases/7.0.0-rc3/pmd-dist-7.0.0-rc3-bin.zip
Description:
When running CPD, I get a warning as depicted below.
Sample demonstrating the issue:
Steps to reproduce:
d:\tmp\test-pmd\pmd-bin-7.0.0-rc3\bin\pmd.bat cpd --minimum-tokens=100 --language python --debug --dir .
Running PMD through: [CLI]
I use the following Java version:
The text was updated successfully, but these errors were encountered: