[cdi-dev] [JBoss JIRA] (CDI-415) Observer resolution doesn't specify handling of null parameter values

Michael Kotten (JIRA) issues at jboss.org
Thu Sep 1 02:54:01 EDT 2016


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

Michael Kotten commented on CDI-415:
------------------------------------

It should be explicitly stated that _null_ is a non valid value for an event. In the end this might be, because you can't extract the type of _null_. BTW, OWB just crashes with a NPE when calling getClass() ;-).  

> Observer resolution doesn't specify handling of null parameter values
> ---------------------------------------------------------------------
>
>                 Key: CDI-415
>                 URL: https://issues.jboss.org/browse/CDI-415
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Events
>            Reporter: Michael Kotten
>            Priority: Minor
>              Labels: F2F2016
>             Fix For: 2.0 (discussion)
>
>
> There is a gap in chapter 10.2 of the current CDI spec about [observer resolution|http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#observer_resolution]. It doesn't specify what should happen if an event gets fired using a null value. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list