I'm trying to replixate the kogito quarkus example...
# getting-started
s
I'm trying to replixate the kogito quarkus example where they use this injection method:
Copy code
@Named("approvals")
    @Inject
    Process<? extends Model> approvalsProcess;
When i try the same thing in Kotlin, i'm only getting an
Copy code
[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:
Copy code
@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