Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.0.11, 3.0.12, 3.0.13
-
None
-
None
Description
I'm having a problem with versions after 3.0.10 when generics is used in return.
PostgreSQLContainer postgreSQLContainer = new PostgreSQLContainer('postgres:13.4') .withDatabaseName(POSTGRESQL_DB) .withUsername(POSTGRESQL_USER) .withPassword(POSTGRESQL_PASS) .withReuse(!IS_JENKINS_BUILD) .withTmpFs(['/var/lib/postgresql/data': 'rw']) as PostgreSQLContainer
TcIntegrationSpec.groovy: 34: [Static type checking] - Cannot find matching method org.testcontainers.containers.PostgreSQLContainer#withUsername(java.lang.String). Please check if the declared type is correct and if the method exists. @ line 34, column 17. .withUsername(POSTGRESQL_USER) ^
I believe the problem is related to https://issues.apache.org/jira/browse/GROOVY-10054
Attachments
Attachments
Issue Links
- is related to
-
GROOVY-10055 STC does not support self bounded types
- Closed