Let's suppose that I have the following interface:
{ { code:java} public interface A<T> { } {code } }
And the following injection point:
{{public class B<U> { ... @Inject @Any private Instance<A<U>> injectedInstances; } }}
Then no instances of A are injected, I need to use wildcards to make it work: {{public class B<U> { ... @Inject @Any private Instance<A<?>> injectedInstances; } }}
Is this the expected behavior?
Note: I have detected this problem after upgrading the Weld version I use from 1.1.24 to 3.1.0. In 1.1.24 this was working fine for me. |
|