Siegfried Kiermayer
09/06/2022, 4:24 PM@Named("approvals")
@Inject
Process<? extends Model> approvalsProcess;
When i try the same thing in Kotlin, i'm only getting an
[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.AmbiguousResolutionException: Ambiguous dependencies for type org.kie.kogito.process.Process<? extends org.kie.kogito.Model> and qualifiers [@Default]
exception.
The same constructor injection 'way' actually works:
@ApplicationScoped
class FooBar (
@Named(value = "approvals")
private val approvalsProcess: Process<out Model>
){
But now i need to do the injection in my Test class for a unit test and i can't use this as its not allowed. only propery assignment is allowed