[weld-issues] [JBoss JIRA] Closed: (WELD-452) Type parameter should not be required to be a concrete type

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Feb 25 05:37:15 EST 2010


     [ https://jira.jboss.org/jira/browse/WELD-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-452.
--------------------------

    Resolution: Cannot Reproduce Bug
      Assignee: Pete Muir


http://fisheye.jboss.org/changelog/weld/?cs=5961

I added this as a test to core trunk. I did fix an issue just like this just before 1.0.1 final and after CR2, so I suspect that is 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
>            Assignee: Pete Muir
>         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