Let's suppose that I have the following interface:
{code:java} public interface A<T> { } {code}
And the following injection point:
{ { code:java} public class B<U> { ... @Inject @Any private Instance<A<U>> injectedInstances; ... } {code } }
Then no instances of A are injected, I need to use wildcards to make it work: { { code:java} public class B<U> { ... @Inject @Any private Instance<A<?>> injectedInstances; } {code } }
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. |
|