tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gal Shachor <shac...@il.ibm.com>
Subject Re: [SERVLET-API, BUG] TagSupport.release() doesn't release all
Date Thu, 22 Jun 2000 08:41:55 GMT


Hans Bergsten wrote:
> 
> The javax.servlet.jsp.tagext.TagSupport class contains four instance
> variables:
> 
>     private   Tag         parent;
>     private   Hashtable   values;
>     protected String      id;
>     protected PageContext pageContext;
> 
> But only one of them is released in the release() method:
> 
>     public void release() {
>         parent          = null;
>     }
> 
> As far as I can tell, all of them should be set to null.
> 

Correct, (yet you could just use clear() on values). Release should
return the tag to its initial state so it will be ready for reuse. 

	Gal Shachor

Mime
View raw message