Martin Kouba created DELTASPIKE-1127:
----------------------------------------
Summary: 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
Components: Core
Affects Versions: 1.6.0
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)