testcontainers / testcontainers/testcontainers-java

[Bug]: Library source doesn't match bytecode

Open
#8,281 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/bug
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:
grafik

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:
grafik
but it is:
grafik

Additional Information

You may have a look at:

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.