You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Library source does not match the bytecode for class GenericContainer #9220
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.
This is causing our project to fail with the cryptic error:
java: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for lombok.NonNull not found
when we use JDK 23 to compile a project in IntelliJ so the question is: why the import lombok.NonNull; is retained in the source code of the JdbcDatabaseContainer ?
Here's a sample repro that will fail to build when JDK 23 is used, due to the import lombok.Nonnull and it's usages being retained in the compiled JdbcDatabaseContainer class. It seems that delombok plugin is not doing its job properly
Activity
kiview commentedon Sep 12, 2024
Hey @jpmartins, thanks for reporting.
We are using the delombok task from the Gradle-Lombok plugin we are using.
I don't know what else we can do to mitigate the situation (besides removing Lombok altogether), suggestions are welcome.
wendigo commentedon Oct 7, 2024
This is causing our project to fail with the cryptic error:
when we use JDK 23 to compile a project in IntelliJ so the question is: why the
import lombok.NonNull;is retained in the source code of theJdbcDatabaseContainer?wendigo commentedon Oct 7, 2024
repro-intellij.zip
Here's a sample repro that will fail to build when JDK 23 is used, due to the
import lombok.Nonnulland it's usages being retained in the compiledJdbcDatabaseContainerclass. It seems thatdelombokplugin is not doing its job properlyAB-xdev commentedon Sep 16, 2026
Duplicate of #8281