It means I need explicit cast when using methods from super type, eg:
@ClassRule
public static OracleContainer db = (OracleContainer) new OracleContainer("foo")
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("db container logger")));
Following screams compilation errors, because #withLogConsumer returns GenericContainer:
@ClassRule
public static OracleContainer db = new OracleContainer("foo")
.withLogConsumer(new Slf4jLogConsumer(LoggerFactory.getLogger("db container logger")));
Hi @SoftwareTipi,
Have you tried public static OracleContainer db = new OracleContainer<>("foo") as a workaround?
Hi OracleContainer does not have generic type on itself so diamond syntax won't apply to this.
And still this would be workaround.
@SoftwareTipi Yes, you are right. Are you interested in providing a PR?
@kiview already submitted: #1425
Most helpful comment
@kiview already submitted: #1425