tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TOMEE-1896) TomcatWebAppBuilder overwrites the last added event listener
Date Thu, 04 Aug 2016 13:59:20 GMT

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

Romain Manni-Bucau resolved TOMEE-1896.
---------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 7.0.2

> 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
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.2
>
>         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)

Mime
View raw message