A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/4674 below:

Illegal reflective access by org.codehaus.groovy.reflection.CachedClass · Issue #4674 · pmd/pmd · GitHub

Affects PMD Version:

Tested on https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.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:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/D:/tmp/test-pmd/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
[main] INFO net.sourceforge.pmd.cli.commands.internal.AbstractPmdSubcommand - Log level is at TRACE
[main] DEBUG net.sourceforge.pmd.cpd.CPD - Searching directory . for files
[main] DEBUG net.sourceforge.pmd.cpd.CPD - Tokenizing D:\10_Projects\Python\exp\.\__init__.py
[main] DEBUG net.sourceforge.pmd.cpd.CPD - Tokenizing D:\10_Projects\Python\exp\.\missing_comma.py
[main] DEBUG net.sourceforge.pmd.cpd.CPD - Running match algorithm on 2 files...
[main] DEBUG net.sourceforge.pmd.cpd.CPD - Finished: 0 duplicates found

Steps to reproduce:

  1. Download PMD 7.0.0. RC
  2. Invoke: 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:

java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4