[weld-issues] [JBoss JIRA] Created: (WELD-452) Type parameter should not be required to be a concrete type
Pieter Martin (JIRA)
jira-events at lists.jboss.org
Thu Feb 25 05:04:15 EST 2010
Type parameter should not be required to be a concrete type
-----------------------------------------------------------
Key: WELD-452
URL: https://jira.jboss.org/jira/browse/WELD-452
Project: Weld
Issue Type: Bug
Affects Versions: 1.0.1.Final
Environment: Linux, 1.6.0_15
Reporter: Pieter Martin
When injecting parameterized types weld gives an error on start up. The code below fails with
Exception in thread "main" org.jboss.weld.exceptions.DefinitionException: WELD-000023 Type parameter must be a concrete type: public com.rorotika.ci.model.ModelSolution com.rorotika.executor.ci.CIExecutor.getModelSolution()
at org.jboss.weld.bean.AbstractProducerBean.checkProducerReturnType(AbstractProducerBean.java:180)
@Inject
@Parameterized
Parameterized1<Parameterized2<Double>> parameterized;
...
@Produces
@Parameterized
public Parameterized1<Parameterized2<Double>> getParameterized()
{
return new Parameterized1();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list