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

Injecting generic classes doesn't substitute type arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 1.1.10.Final
    • Events
    • None

    Description

      public Foo<T> {
        @Inject Event<T> event;
      }
      
      public Fub {
        @Inject Foo<Bar> foo;
      }
      

      This will result in Fub.foo.event being initialized as Event<T>.

      On the other hand, with WELD-1111 fixed, this injects the correctly typed Event<Bar>.

      public Foo<T> {
        @Inject Event<T> event;
      }
      
      public FooBar extends Foo<Bar> {}
      
      public Fub {
        @Inject FooBar foo;
      }
      

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            mabako Anonymous User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: