testcontainers / testcontainers/testcontainers-java
[Bug]: Library source doesn't match bytecode
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.19.4
Using the latest Testcontainers version?
Yes
What happened?
It looks like you are using Lombok in your source code. This is fine, however when you publish the source jar make sure that the actual generated code from lombok is inside this jar.
Currently when viewing the source code e.g. line numbers are distorted, imports are invalid and IntelliJ brings this warning:
We e.g. had major problems debugging why GenericContainer#startupAttempts was not 1 because according to the provided source code no setter is invoked ist not set anywhere:
but it is:
Additional Information
You may have a look at:
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 inspecting the source-jar publishing configuration and the Lombok delombok guidance linked in the issue. Use GenericContainer#startupAttempts as the example, and verify that the published source reflects the generated code, imports, line numbers, and debugger behavior described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100