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

InjectionPoint resolution not conform to CDI 1.1 spec

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.2.Final, 2.1.0.CR1
    • Fix Version/s: 2.1.1.Final, 2.2.0.Alpha1
    • Component/s: Built-in beans
    • Labels:
      None
    • Environment:

      Tested on Wildfly 8.0 Alpha 1 and Glassfish 4.0

      Description

      If I define a producer with an injection point for buil-in bean InjectionPoint like this :

      @Produces
      @Named
      public OAuthSession getCurrentSession(InjectionPoint ip) {…}
      

      And I call #{currentSession} in JSF or JSP page, I get an exception

      WELD-000009: Dynamic lookup of Implicit Bean [javax.enterprise.inject.spi.InjectionPoint] with qualifiers [@Default] is not supported
      

      thrown by InjectionPointBean.getInjectionPoint() method.
      In Weld 1.x I had a null value injected in my InjectionPoint.

      According to the CDI 1.1 spec : "6.5.3. Contextual reference for a bean", the correct behavior should be the Weld 1.x one : returning a null InjectionPoint.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bafco Matus Abaffy
                Reporter:
                antoinesabot-durand Antoine Sabot-Durand
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: