> On Oct 30, 2024, at 01:55, somasani nikhil <somasaninik...@gmail.com> wrote:
> 
> We are using the following piece of code..
> 
> =========================================
> 
> Class MyTag extends *TagSupport {*
> public int doStartTag() throws JspException {
> --
> --
> *constructTitle*(list)
> --
> --
> }
> 
> private String *constructTitle*(List titleElements) {
> StringBuffer titleValue = new StringBuffer();
> for(int i=0; i < titleElements.size(); i++) {
> titleValue.append(titleElements.get(i));
> if (i != titleElements.size() - 1) {
> titleValue.append(SPACE);
> titleValue.append(*delimiterSymbol*);
> titleValue.append(SPACE);
> }
> }
> return titleValue.toString();
> }
> 
> public void *release*() {
> * delimiterSymbol *= null;
> super.release();
> }
> 
> -----------
> 
> The above release() method is called ONLY in Tomcat 9.0.96 but not in
> 9.0.95 or earlier thus causing the delimiter to be set to *null*. Not sure
> of the real reason though - any help would be appreciated.
> 
> Maybe we can reset it back (or comment it) but we would like to understand
> the behavioral difference with various tomcat versions.


This is likely fixed in Tomcat 9.0.97, which should be starting the release 
process in a few days.

See this BZ entry:
https://bz.apache.org/bugzilla/show_bug.cgi?id=69399

And this commit:
https://github.com/apache/tomcat/commit/9813c5dd3259183f659bbb83312a5cf673cc1ebf

  - Chuck

Reply via email to