tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: TomcatWebAppBuilder overwrites the last added event listener
Date Thu, 04 Aug 2016 13:14:32 GMT
Hi Svetlin,

we set the first and last listeners so it looks right.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-08-04 15:08 GMT+02:00 Svetlin Zarev <svetlin.angelov.zarev@gmail.com>:

> Hi,
>
> 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;
>
> Kind regards,
> Svetlin
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message