[weld-issues] [JBoss JIRA] Closed: (WELD-308) Event errors not checked

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Nov 23 09:42:30 EST 2009


     [ https://jira.jboss.org/jira/browse/WELD-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-308.
--------------------------

    Fix Version/s: 1.0.1.CR1
       Resolution: Duplicate Issue
         Assignee: Pete Muir


> 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
>            Assignee: Pete Muir
>             Fix For: 1.0.1.CR1
>
>
> 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