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

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Sep 12 19:38:26 EDT 2011


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

Alexey Kazakov updated JBIDE-9699:
----------------------------------

    Description: 
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}

  was:
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}



> 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: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list