[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Kouba updated DELTASPIKE-1127:
-------------------------------------
    Affects Version/s:     (was: 1.6.0)
          Component/s:     (was: Core)

> Event.fire() - the runtime type of the event object not validated
> -----------------------------------------------------------------
>
>                 Key: DELTASPIKE-1127
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1127
>             Project: DeltaSpike
>          Issue Type: Bug
>            Reporter: Martin Kouba
>
> The eventType passed to {{WebBeansUtil.validEventType()}} is always 
> {{Class<T>}}, i.e. {{event.getClass().getClass()}}, see also 
> {{org.apache.webbeans.event.EventImpl.fire()}}:
> {code:java}
> public void fire(T event) {
>   Type eventType = event.getClass();
>   webBeansContext.getWebBeansUtil().validEventType(eventType.getClass(), 
> metadata.getType());
>   ...
> }
> {code}
> This may cause unpredictable results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to