Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-304

Clarify Producers for injection into generic types

    XMLWordPrintable

Details

    • Clarification
    • Resolution: Done
    • Major
    • 1.1.PFD
    • 1.1.PRD
    • Beans
    • None

    Description

      There is a discussion over in DeltaSpike whether an injection point

      @Inject
      private JsfMessage<SomeMessageClass>;
      

      with a producer method

      @Produces @Dependent
      JsfMessage createMessage(InjectionPoint ip)
      

      5.2 imo only defines the other way around. Having a raw type at the injection point and a parameterized producer method.
      We should define how this is intended to work.
      Please note that the producer above works in all existing containers so far but not in Weld2-beta1.

      Here is the link to the DS issue: https://issues.apache.org/jira/browse/DELTASPIKE-295

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            struberg Mark Struberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: