Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-438

InjectionPoint missing Annotated, Qualifiers for Produces when injecting Instance.get()

    XMLWordPrintable

Details

    Description

      The InjectionPoint passed to the producer method as a result of calling Instance.get() returns null for getAnnotated(), getMember(), and has no qualifiers (regardless of whether the declaration defined them or not).

      Here's a sample of what I'm talking about:

      Test.java:
      @Inject @Destination Instance<Topic> t;

      @Test
      public void testInjection()
      {
      assertNotNull(t.get());
      }

      TopicProducer.java:
      @Produces @Destination
      public Topic getTopic(InjectionPoint ip)

      { ... }

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            jganoff Jordan Ganoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: