[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-7967) nonannotated classes without default constructor and no CDI scope or inject annotations on class or constructor should not be considered beans

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Dec 20 17:35:18 EST 2010


     [ https://issues.jboss.org/browse/JBIDE-7967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-7967:
----------------------------------

    Assignee: Viacheslav Kabanovich  (was: Alexey Kazakov)


> 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

        


More information about the jbosstools-issues mailing list