[weld-issues] [JBoss JIRA] Created: (WELD-308) Event errors not checked
Santiago Pericas-Geertsen (JIRA)
jira-events at lists.jboss.org
Mon Nov 23 09:35:29 EST 2009
Event errors not checked
------------------------
Key: WELD-308
URL: https://jira.jboss.org/jira/browse/WELD-308
Project: Weld
Issue Type: Bug
Components: Events
Affects Versions: 1.0.0.GA
Environment: Solaris x86 / JDK 6u16 / GF v3
Reporter: Santiago Pericas-Geertsen
The following TCK test,
*.deployment.lifecycle.broken.addDefinitionError.AddDefinitionErrorTest.testObserverDefinitionErrorTreatedAsDefinitionError
fails because no exception is reported when app is deployed. There is an extension class, BeanDiscoveryObserver, which calls,
event.addDefinitionError(new AssertionError(...))
in a method that observes the AfterBeanDiscovery event. The spec says that if such an error is reported, the deployment should fail, so the tests appears to be correct.
I cannot find any code in Weld that would check the list of errors in an instance of AfterBeanDiscoveryImpl, though. This suggests that an error check is missing in Weld. The method WeldBootstrap.deployBeans() calls,
AfterBeanDiscoveryImp.fire(...)
which is a static method that creates a new instance of AfterBeanDiscoveryImpl. However, that instance is discarded after its fire() method is called.
--
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
More information about the weld-issues
mailing list