Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13228 Support CDI 1.1
  3. JBIDE-15603

CDI 1.1 allows injecting bean that may have null values to a point with primitive type

    XMLWordPrintable

Details

    Description

      https://issues.jboss.org/browse/CDI-247
      Consider producer and injection point.

      @Produces @SomeQualifier Boolean b() {
          return null;
      }
      
      @Inject @SomeQualifier boolean b;
      

      CDI 1.0 treated that injection as a deployment problem.
      CDI 1.1 lets primitive field/parameter be assigned to the default value when injected bean has null value.

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: