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

WARNING: Multiple beans are eligible for injection to the injection point

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 3.2.0.CR1
    • 3.2.0.Beta2
    • cdi
    • None
    • Hide

      on org.jboss.seam.examples.booking.security.Authenticator.java there are both examples.

      Show
      on org.jboss.seam.examples.booking.security.Authenticator.java there are both examples.

    Description

      When I use:
      import org.jboss.seam.international.status.Messages;
      @Inject
      private Messages messages;

      it says that I have "Multiple beans are eligible for injection to the injection point"
      if I click at Inject holding CTRL, and asks for those eligible beans, it shows that both the Messages interface and the MessagesImpl are eligible to
      this injection. It shouldn't show the interface as an eligible bean.

      (did'nt know if I should open another issue, but I guess it's ok to post as one issue.)
      AND when using:

      import org.slf4j.Logger;
      @Inject
      Logger log;

      it says that I have "Multiple beans are eligible for injection to the injection point"
      if I click at Inject holding CTRL, and asks for those eligible beans, it shows a duplicate entry for @Produces Logger.produceLog();

      Actually, they are not duplicate, there are 2 methods in two different jars, but they both produces the same bean, both weld-logger.jar and weld-extensions have this producer method.

      Attachments

        Activity

          People

            alexeykazakov Alexey Kazakov
            spinner_jira José Freitas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: