testcontainers / testcontainers/testcontainers-java
[Bug]: Library source does not match the bytecode for class GenericContainer
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
Module
Core
Testcontainers version
1.20.1
Using the latest Testcontainers version?
Yes
Host OS
macOs 14.6.1
Host Arch
ARM (Apple M2)
Docker version
-
What happened?
While trying to debug testcontainers potential bug, I discovered that sources published are not the correct.
The testcontainers-1.20.1-sources.jar content does not match testcontainers-1.20.1.jar content.
For example the GenericContainer class in testcontainers-1.20.1-sources.jar does not have public @NonNull List getExtraHosts() method... that is present in javadoc and in the library class at runtime.
Relevant log output
No response
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the published testcontainers-1.20.1-sources.jar with testcontainers-1.20.1.jar and the Javadoc for GenericContainer, focusing on getExtraHosts(). Trace the release packaging inputs that produce these artifacts. Done means the published sources, bytecode, and Javadoc describe the same GenericContainer API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, release
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100