[weld-issues] [JBoss JIRA] Updated: (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:09:10 EST 2010
[ https://jira.jboss.org/jira/browse/WELD-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pieter Martin updated WELD-452:
-------------------------------
Attachment: parameterized.txt
parameterized1.txt
parameterized2.txt
The attached files are patches for a test case for weld-se project that illustrates the issue
> 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
> Attachments: parameterized.txt, parameterized1.txt, parameterized2.txt, parameterizedProducer.txt, parameterizedtest.txt, testBean.txt
>
>
> 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