]
Lukas Jungmann closed JBIDE-7967.
---------------------------------
v. in v20110121-0004-H124-CR1
nonannotated classes without default constructor and no CDI scope or
inject annotations on class or constructor should not be considered beans
----------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-7967
URL:
https://issues.jboss.org/browse/JBIDE-7967
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Reporter: Max Rydahl Andersen
Assignee: Alexey Kazakov
Priority: Critical
Fix For: 3.2.0.CR1
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 {
@Produces
@Default
@Dependent
public Project getCurrent()
}
@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.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: