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

Sometimes injections do not resolve to produced bean with restricted generic type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.1.M1, 3.3.0.M1
    • 3.2.0.Final
    • cdi
    • None

      Injection point is not resolved in the following case:

      public class Test {
      
          @Produces @Typed(List.class)
          private ArrayList<Boolean> producer = new ArrayList<Boolean>();
      	   
          @Inject
          List<Boolean> injected;
      }
      

      For the current implementation, it is important here that List and ArrayList are library types. If a generic type and subtype defined in local project are used, then injection is resolved.

        1. JBIDE-8736.patch
          14 kB
          Viacheslav Kabanovich

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

                Created:
                Updated:
                Resolved: