Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-7967

nonannotated classes without default constructor and no CDI scope or inject annotations on class or constructor should not be considered beans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.2.0.CR1
    • None
    • cdi
    • None

      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.

            alexeykazakov Alexey Kazakov
            manderse@redhat.com Max Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: