You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Martin Kouba (JIRA)" <ji...@apache.org> on 2016/04/14 14:29:25 UTC
[jira] [Updated] (DELTASPIKE-1127) Event.fire() - the runtime type
of the event object not validated
[ 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)