Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11460

If an injection point with unproxyable type is resolved to a producer bean with normal type, it is a deployment error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • 3.3.0.Beta1
    • cdi
    • None

      Validation is implemented for a class bean, and partially for a producer when its type is an array or primitive.
      The following case is not covered by validation.

      public class TestBean {
      
          @Inject
          String s;
      
          @Produces
          @RequestScoped
          String getString() {
              return "x";
          }
      
      }
      

      Implementation for class bean is not correct. It checks if injected bean type is proxyable, but instead it should check if the type of injection point is proxyable.

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

              Created:
              Updated:
              Resolved: