Bug 17130

Summary: Reusing tags doesn't release resources if cache tag is used
Product: Tomcat 4 Reporter: Vicente Salvador <vicentesalvador>
Component: Jasper 2Assignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 4.1.20   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Vicente Salvador 2003-02-17 15:50:40 UTC
Look at TagHandlerPool.java
Method resuse should call always the release method of the tag, if not the
variables of the class are not initialized and if the tag is used from the
cache, release is never called.

This has been tested on an "tag intensive application". Please patch it for
4.1.21. Next I inclose how the reuse method of TagHandlerPool should be:


public synchronized void reuse(Tag handler) {
	if (current < (handlers.length - 1))
	    handlers[++current] = handler;
// Why else ?, always release resources and prepare for next use
//	else
	    handler.release();
}
Comment 1 Vicente Salvador 2003-02-17 15:54:13 UTC
Changing to a better summary
Comment 2 John Trollinger 2003-02-17 15:55:27 UTC

*** This bug has been marked as a duplicate of 16001 ***