-
Bug
-
Resolution: Done
-
Major
-
3.3.0.Final
-
None
See the example from https://github.com/pmuir/jboss-as-developer-guide/tree/master/quickstarts
There is org.jboss.as.quickstarts.login.EJBUserManager:
org.jboss.as.quickstarts.login.EJBUserManager
... @Named("userManager") @RequestScoped @Alternative @Stateful public class EJBUserManager implements UserManager { ... @Produces @Named @RequestScoped public List<User> getUsers() throws Exception { ... } ... }
And there is also another bean org.jboss.as.quickstarts.login.ManagedBeanUserManager:
org.jboss.as.quickstarts.login.ManagedBeanUserManager
... @Named("userManager") @RequestScoped public class ManagedBeanUserManager implements UserManager { @SuppressWarnings("unchecked") @Produces @Named @RequestScoped public List<User> getUsers() throws Exception { ... } ... }
We have two beans with EL name #
{users}Try to inject it in some bean:
@Inject List<User> users;
There is a warning about ambiguous beans that is not correct.
See WELD-930 for details.
- relates to
-
WELD-930 Producer is made an alternative if the declaring bean class is an alternative
- Resolved