Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Partially Completed
-
Affects Version/s: None
-
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 {
public ProjectImpl(final File rootDirectory)
{ projectRoot = rootDirectory; }}
@Singleton
public class CurrentProject
@Inject Project project;
should in this case just consider getCurrent() the only injection source because Abstract class cannot be instantatiated nor can the PRojectImpl since it has no-noarg constructor but does have a constructor with arguments.
Gliffy Diagrams
Issue Links
- cloned to
-
JBIDE-7950
Abstract classes is being considered injectable
-
- Closed
-
It's already implemented. But there is a bug. If a class is a valid bean type then it's treated as a bean. So it's a reason why ProjectImpl is injectable in JBT (this is a bug).