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

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Dec 20 17:31:17 EST 2010


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: 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: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list