-
Task
-
Resolution: Done
-
Major
-
2.0.3.Final
-
None
-
None
class Foo<U extends String, V extends Number> { } class Client { @Inject public void initFoo(Foo foo) { } }
throws:
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type Foo<String, Number> with qualifiers @Default at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedMethod] @Inject public org.jboss.weld.tests.Client.initFoo(Foo<String, Number>) at org.jboss.weld.tests.Client(Client.java:0)
The injection point type is Foo (without type arguments), so why does Weld think it's Foo<String, Number>?
Maybe it is using the correct injection point type, but only printing the wrong type in the exception message. Investigate!