[
https://issues.jboss.org/browse/JBIDE-7967?page=com.atlassian.jira.plugin...
]
Alexey Kazakov commented on JBIDE-7967:
---------------------------------------
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).
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 Andersen
Assignee: Viacheslav Kabanovich
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:
http://www.atlassian.com/software/jira