You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Thomas Andraschko (Jira)" <ji...@apache.org> on 2026/04/15 09:43:00 UTC
[jira] [Resolved] (OWB-1128) Event.fire() - the runtime type of the event object not validated
[ https://issues.apache.org/jira/browse/OWB-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved OWB-1128.
------------------------------------
Resolution: Fixed
> Event.fire() - the runtime type of the event object not validated
> -----------------------------------------------------------------
>
> Key: OWB-1128
> URL: https://issues.apache.org/jira/browse/OWB-1128
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Events
> Affects Versions: 1.6.3
> Reporter: Martin Kouba
> Assignee: Mark Struberg
> Priority: Major
> Fix For: 4.1.0
>
>
> 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
(v8.20.10#820010)