[cdi-dev] [JBoss JIRA] (CDI-173) Improve javadoc for event-firing methods

Martin Kouba (JIRA) jira-events at lists.jboss.org
Tue Oct 9 08:07:03 EDT 2012


    [ https://issues.jboss.org/browse/CDI-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724958#comment-12724958 ] 

Martin Kouba commented on CDI-173:
----------------------------------

https://github.com/jboss/cdi/commit/937d8175899a9a79edf80a8547e2c652a62cbf7a
                
> Improve javadoc for event-firing methods
> ----------------------------------------
>
>                 Key: CDI-173
>                 URL: https://issues.jboss.org/browse/CDI-173
>             Project: CDI Specification Issues
>          Issue Type: Bug
>          Components: Javadoc and API
>    Affects Versions: 1.0
>            Reporter: Jozef Hartinger
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 1.1.PRD
>
>
> The spec says
> {quote}Otherwise, the exception aborts processing of the event. No other observer methods of that event will be called. The
> BeanManager.fireEvent() or Event.fire() method rethrows the exception. If the exception is a checked exception,
> it is wrapped and rethrown as an (unchecked) ObserverException.{quote}
> The JavaDoc for BM.fireEvent() and Event.fire() only mentions IllegalArgumentException. The fact that the ObserverException or any other unchecked exception raised by an observer method is rethrown should be mentioned.

--
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


More information about the cdi-dev mailing list