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

Abstract classes is being considered injectable

    XMLWordPrintable

Details

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

    Description

      public interface Project {

      }

      public abstract class AbstractProject implements Project {

      }

      public class ProjectImpl extends AbstractProject {

      }

      @Singleton
      public class CurrentProject

      { @Produces @Default @Dependent public Project getCurrent() }

      and then:

      @Inject Project project;

      And I get "Multiple beans are eligible for injection to the injection point"

      Open All elgible beans seem to consider getCurrent() and the abstract class - but for some reason not ProjectImpl as elgible.

      Should it not just be getCurrent() ?

      Attachments

        Issue Links

          Activity

            People

              scabanovich Viacheslav Kabanovich (Inactive)
              manderse@redhat.com Max Andersen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: