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