testcontainers / testcontainers/testcontainers-java

warnings about illegal reflective access

Open
#659 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

resolution/acknowledged
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

When running my tests with Oracle Java 10 I get warnings like this:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.testcontainers.shaded.io.netty.util.internal.ReflectionUtil (file:/home/capitol/.gradle/caches/modules-2/files-2.1/org.testcontainers/testcontainers/1.7.1/3a8d198f3b7cafa3c08d8edee7f4f370ccee1526/testcontainers-1.7.1.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of org.testcontainers.shaded.io.netty.util.internal.ReflectionUtil
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

Open the contributing guide

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 by reproducing the warnings on Oracle Java 10 and inspect the shaded Netty ReflectionUtil path named in the report. Check the Testcontainers 1.7.1 dependency and relevant test setup; done means the illegal reflective-access warnings are addressed or the supported behavior is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.