Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Done
-
Affects Version/s: 3.2.0.Beta2
-
Fix Version/s: 3.2.0.CR1
-
Component/s: cdi
-
Labels:None
Description
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() ?
Gliffy Diagrams
Issue Links
- cloned from
-
JBIDE-7967
nonannotated classes without default constructor and no CDI scope or inject annotations on class or constructor should not be considered beans
-
- Closed
-
marked as critical that this seems to be a very common pattern.