[Bug]: Library source does not match the bytecode for class GenericContainer
Author: jpmartinsCreated Sep 12, 2024Updated Sep 16, 2026
Labelstype/bug
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
Source: testcontainers/testcontainers-java