public interface Project {
}
public abstract class AbstractProject implements Project {
}
public class ProjectImpl extends AbstractProject {
}
@Singleton
public class CurrentProject
and then:
@Inject Project project;
And I get "Multiple beans are eligible for injection to the injection point"
Open All elgible beans seem to consider getCurrent() and the abstract class - but for some reason not ProjectImpl as elgible.
Should it not just be getCurrent() ?
- is cloned by
-
JBIDE-7967 nonannotated classes without default constructor and no CDI scope or inject annotations on class or constructor should not be considered beans
- Closed