[jbosstools-issues] [JBoss JIRA] (JBIDE-9699) Injection points of disposer methods are not validated

Jaroslav Jankovič (Closed) (JIRA) jira-events at lists.jboss.org
Mon Oct 31 07:57:45 EDT 2011


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

Jaroslav Jankovič closed JBIDE-9699.
------------------------------------



Verified in JBDS 5.0.0.v201110242253R-H40-M4. Closing Jira.
                
> Injection points of disposer methods are not validated
> ------------------------------------------------------
>
>                 Key: JBIDE-9699
>                 URL: https://issues.jboss.org/browse/JBIDE-9699
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 3.3.0.M3
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.M4
>
>
> See JSR-299:
> {quote}
> *3.3.6. Declaring a disposer method*
> ...
> In addition to the disposed parameter, a disposer method may declare additional parameters, which may also specify qualifiers. These additional parameters are injection points.
> {quote}
> So we should treat all the parameters of disposer methods (except disposer parameters) as injection points.
> For instance the following *@TestQualifier1 String s1* injected parameter should be marked as unsatisfied dependency:
> {code}
> public void foo2(@Disposes @TestQualifier3 String s, @TestQualifier1 String s1) {
> }
> @Produces
> @TestQualifier3
> public String foo3() {
> 	return "";
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list