[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8019) Injection point is not resolved to producer from jar.

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Dec 30 06:21:17 EST 2010


    [ https://issues.jboss.org/browse/JBIDE-8019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572520#comment-12572520 ] 

Viacheslav Kabanovich commented on JBIDE-8019:
----------------------------------------------

jar files of weld do not include file entry META-INF/beans.xml. So our model ignores them. I think we only can take them into consideration by name pattern weld-*

> Injection point is not resolved to producer from jar.
> -----------------------------------------------------
>
>                 Key: JBIDE-8019
>                 URL: https://issues.jboss.org/browse/JBIDE-8019
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.2.0.CR1
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.2.0.CR1
>
>
> 1. Project A has weld-se-core-1.1.0.Beta1-sources.jar in its class path.
> 2. weld-se-core-1.1.0.Beta1-sources.jar has ParametersFactory.class:
>    @Produces
>    @Parameters
>    public List<String> getArgs()
>    {
>       return argsList;
>    }
> and Parameters.class:
> @Qualifier
> @Retention(RUNTIME)
> @Target({ PARAMETER, METHOD, FIELD, TYPE })
> public @interface Parameters {}
> 3. Project A also has the following class:
> public class ShellImpl {
>    @Inject
>    @Parameters
>    private List<String> parameters;
> }
> 4. But private List<String> parameters; is not resolved to getArgs() producer.
> This example is from froge-shell (seam-forge) project.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list