implementing the same local interface (Animal) and declaring no other views
deployed in two different modules, one module (A) is visible to the other (B).
When trying to inject Animal in the module B, once I get an instance of the first bean, next time an instance of the second one. The correct behavior would be DeploymentException due to ambiguous dependency.
interface Animal {}
@Stateful(name = "Animal")
public class Cat implements Animal {}
@Stateful(name = "Animal")
public class Dog implements Animal {}
public class Bar {
@Inject
private Animal animal;
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira