]
Alexey Kazakov commented on JBIDE-9699:
---------------------------------------
Injected parameters of producer methods, observer methods and constructors should also be
validated.
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.
For more information on JIRA, see: