[JBoss JIRA] Created: (WELD-321) Specialization of managed beans seems to be broken
by Gavin King (JIRA)
Specialization of managed beans seems to be broken
--------------------------------------------------
Key: WELD-321
URL: https://jira.jboss.org/jira/browse/WELD-321
Project: Weld
Issue Type: Bug
Components: Class Beans (Managed and Session)
Affects Versions: 1.0.0.GA
Reporter: Gavin King
Fix For: 1.0.1.CR1
The following code:
@Specializes
public class User2 extends User {}
results in this exception in the SE extension. User is definitely recognized as a bean.
Exception in thread "main" org.jboss.weld.DefinitionException: WELD-000047 Specializing bean must extend another bean\: org.jboss.weld.bean-se-module-ManagedBean-class setest.User2
at org.jboss.weld.bean.ManagedBean.specialize(ManagedBean.java:431)
at org.jboss.weld.bean.AbstractBean.initialize(AbstractBean.java:140)
at org.jboss.weld.bean.AbstractClassBean.initialize(AbstractClassBean.java:146)
at org.jboss.weld.bean.ManagedBean.initialize(ManagedBean.java:199)
at org.jboss.weld.bootstrap.AbstractBeanDeployer.deploy(AbstractBeanDeployer.java:111)
at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:151)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:367)
at org.jboss.weld.environment.se.StartMain.go(StartMain.java:73)
at org.jboss.weld.environment.se.StartMain.main(StartMain.java:89)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (WELD-354) Value-less @Named annotation of producer methods has no impact
by Johan Eltes (JIRA)
Value-less @Named annotation of producer methods has no impact
--------------------------------------------------------------
Key: WELD-354
URL: https://jira.jboss.org/jira/browse/WELD-354
Project: Weld
Issue Type: Bug
Affects Versions: 1.0.0.GA
Environment: Mac OS, Java SE engine bootstrapped from weld-test
Reporter: Johan Eltes
The following producer methods create beans named
{org.jboss.weld.bean-se-module-ProducerMethod-se.callistaenterprise.cadec2010.cdi.javase.basic.JmsTemplateConfigurationProducer.getLogQeueTemplate(int), org.jboss.weld.bean-se-module-ProducerMethod-se.callistaenterprise.cadec2010.cdi.javase.basic.JmsTemplateConfigurationProducer.getErrorQeueTemplate(int)}
rather than
{logQeueTemplate, errorQeueTemplate}.
As a consequence injection fails at the following injection point:
private @Inject @Named JmsTemplate errorQeueTemplate;
The producer methods:
public class JmsTemplateConfigurationProducer {
@Produces
int longReceiveTimeout = 3 * 3600;
@Produces
int shortReceiveTimeout = 100;
@Produces
@Named
public JmsTemplate getErrorQeueTemplate(
@Named("longReceiveTimeout") int receiveTimeout) {
JmsTemplate tmp = new JmsTemplate();
tmp.setReceiveTimeout(receiveTimeout);
return tmp;
}
@Produces
@Named
public JmsTemplate getLogQeueTemplate(
@Named("shortReceiveTimeout") int receiveTimeout) {
JmsTemplate tmp = new JmsTemplate();
tmp.setReceiveTimeout(receiveTimeout);
return tmp;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months