[jboss-jira] [JBoss JIRA] (WFLY-5718) Semantics of injection for bean produced by method has changed

Juraci Paixão Kröhling (JIRA) issues at jboss.org
Fri Nov 20 11:26:00 EST 2015


Juraci Paixão Kröhling created WFLY-5718:
--------------------------------------------

             Summary: Semantics of injection for bean produced by method has changed
                 Key: WFLY-5718
                 URL: https://issues.jboss.org/browse/WFLY-5718
             Project: WildFly
          Issue Type: Bug
          Components: CDI / Weld, EJB, REST
    Affects Versions: 10.0.0.CR4
            Reporter: Juraci Paixão Kröhling
            Assignee: Stuart Douglas


On Wildfly 8 and Wildfly 9 (and JBoss AS versions before that), injecting a bean that is produced by a method into an Stateless bean would inject a new instance every time the stateless bean is used.

On Wildfly 10, it seems that the first produced bean is used in all subsequent requests.

Unfortunately, I could not find on any spec an authoritative answer for which behavior is the right one, so, I'm assuming that this is a regression.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list