You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Joachim Fuchs <jo...@dai-labor.de> on 2006/06/30 16:43:05 UTC
FW: [Tomcat 4 ContextConfig] Use of Digester
Hi,
Studying the tomcat code I came across the following line:
<code>
...
webDigester.push(null);
...
</code>
My question is, what is this call good for? It results in an NPE, which is caught a few lines later.
Or did I miss anything? Are there any side effects that are not obvious?
Cheers,
Joachim Fuchs
Dipl. Inform. Joachim Fuchs
DAI-Labor - Technische Universität Berlin Sekretariat GOR 1-1, Franklinstraße 28/29, 10587 Berlin
Fon: +49 30 314 23383
joachim.fuchs@dai-labor.de
http://www.dai-labor.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: FW: [Tomcat 4 ContextConfig] Use of Digester
Posted by Mark Thomas <ma...@apache.org>.
Joachim Fuchs wrote:
> My question is, what is this call good for? It results in an NPE, which is caught a few lines later.
> Or did I miss anything? Are there any side effects that are not obvious?
It prevents a memory leak. See
http://marc.theaimsgroup.com/?l=tomcat-dev&m=109449671603358&w=2
and
http://issues.apache.org/bugzilla/show_bug.cgi?id=20758
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
AW: FW: [Tomcat 4 ContextConfig] Use of Digester
Posted by Joachim Fuchs <jo...@dai-labor.de>.
Version 4.1. I am following the trail in the book "How Tomcat Works".
Joachim
--
Joachim Fuchs
+49(0)1703470071
joachim.fuchs@dai-labor.de
< IMPOSSIBLE itself says I M POSSIBLE >
-----Ursprüngliche Nachricht-----
Von: yoavshapira@gmail.com im Auftrag von Yoav Shapira
Gesendet: Fr 6/30/2006 16:47
An: Tomcat Developers List
Betreff: Re: FW: [Tomcat 4 ContextConfig] Use of Digester
Hi,
What version of Tomcat are you studying?
Yoav
On 6/30/06, Joachim Fuchs <jo...@dai-labor.de> wrote:
>
> Hi,
> Studying the tomcat code I came across the following line:
>
> <code>
> ...
> webDigester.push(null);
> ...
> </code>
>
> My question is, what is this call good for? It results in an NPE, which is caught a few lines later.
> Or did I miss anything? Are there any side effects that are not obvious?
>
> Cheers,
>
> Joachim Fuchs
>
> Dipl. Inform. Joachim Fuchs
> DAI-Labor - Technische Universität Berlin Sekretariat GOR 1-1, Franklinstraße 28/29, 10587 Berlin
> Fon: +49 30 314 23383
> joachim.fuchs@dai-labor.de
> http://www.dai-labor.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: FW: [Tomcat 4 ContextConfig] Use of Digester
Posted by Yoav Shapira <yo...@apache.org>.
Hi,
What version of Tomcat are you studying?
Yoav
On 6/30/06, Joachim Fuchs <jo...@dai-labor.de> wrote:
>
> Hi,
> Studying the tomcat code I came across the following line:
>
> <code>
> ...
> webDigester.push(null);
> ...
> </code>
>
> My question is, what is this call good for? It results in an NPE, which is caught a few lines later.
> Or did I miss anything? Are there any side effects that are not obvious?
>
> Cheers,
>
> Joachim Fuchs
>
> Dipl. Inform. Joachim Fuchs
> DAI-Labor - Technische Universität Berlin Sekretariat GOR 1-1, Franklinstraße 28/29, 10587 Berlin
> Fon: +49 30 314 23383
> joachim.fuchs@dai-labor.de
> http://www.dai-labor.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org