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

Clarify Producers for injection into generic types

    Details

    • Type: Clarification
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.PRD
    • Fix Version/s: 1.1.PFD
    • Component/s: Beans
    • Labels:
      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                struberg Mark Struberg
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: