[jbosstools-issues] [JBoss JIRA] (JBIDE-19369) Disposer method doesnt detect Producer field

Alexey Kazakov (JIRA) issues at jboss.org
Wed Feb 25 14:41:49 EST 2015


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

Alexey Kazakov reassigned JBIDE-19369:
--------------------------------------

    Assignee: Viacheslav Kabanovich


> Disposer method doesnt detect Producer field
> --------------------------------------------
>
>                 Key: JBIDE-19369
>                 URL: https://issues.jboss.org/browse/JBIDE-19369
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi
>    Affects Versions: 4.3.0.Alpha1
>            Reporter: Rastislav Wagner
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.3.0.Alpha2
>
>
> This applies for CDI 1.1 and 1.2 which allows Disposer method to accept Producer field.
> {code}
> public class B1 {
> 	
> 	@Produces EntityManager em;
> 	
> 	public void test(@Disposes EntityManager em){
> 		//do smt
> 	}
> {code}
> This code results in error "There is no producer method declared by the (same) bean class that is assignable to the disposed parameter of a disposer method [JSR-346 §3.5.3]" 
> CDI 1.1 and 1.2 allows also producer filed (see section 3.5)



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)



More information about the jbosstools-issues mailing list