You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Svetlin Zarev (JIRA)" <ji...@apache.org> on 2016/08/04 13:45:20 UTC
[jira] [Updated] (TOMEE-1896) TomcatWebAppBuilder overwrites the
last added event listener
[ https://issues.apache.org/jira/browse/TOMEE-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Svetlin Zarev updated TOMEE-1896:
---------------------------------
Summary: TomcatWebAppBuilder overwrites the last added event listener (was: TomcatWebAppBuilderOverwrites the last added event listener)
> TomcatWebAppBuilder overwrites the last added event listener
> ------------------------------------------------------------
>
> Key: TOMEE-1896
> URL: https://issues.apache.org/jira/browse/TOMEE-1896
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Core Server
> Affects Versions: 7.0.1, 7.0.2
> Reporter: Svetlin Zarev
> Attachments: com.github.svetlinzarev.sessionlistenertest.zip
>
>
> The TomcatWebAppBuilder overwrites the last added event listener.
> Line 1764 (on branch/tag 7.0.1):
> System.arraycopy(appEventListeners, 0, newEventListeners, 1,
> appEventListeners.length);
> newEventListeners[newEventListeners.length - 1] = endWebBeansListener;
> It should be:
> System.arraycopy(appEventListeners, 0, newEventListeners, 0,
> appEventListeners.length);
> newEventListeners[newEventListeners.length - 1] = endWebBeansListener;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)