jfrog / jfrog/artifactory-client-java

Illegal reflective access warnings with Java version 11 or later

Open
#359 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Java
Stars
331
Forks
163
Avg merge
20h 9m
Merged PRs (30d)
1

Description

I have a tool that use artifactory-client-java sdk. I believe I started seeing a scary message like below after moving to Java version 10 or 11. I don't remember seeing it with JVM 1.8.
What is the mitigation to make the JVM stop printing this warning?
+++++++++++++++++++++
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/puri_malluru/work/excalcpgfork/test/signartifacts/signartifactsdev.exe) 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
+++++++++++++++++++++

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported warning on Java 10 or 11 and inspect the artifactory-client-java dependency tree for org.codehaus.groovy.reflection.CachedClass. Compare the relevant Java and Groovy versions, then verify that the agreed mitigation prevents the warning without breaking the SDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.