https://bz.apache.org/bugzilla/show_bug.cgi?id=59761

--- Comment #3 from kubak <ja...@pakamera.com.pl> ---
Well, of course copy constructor is better.
But don't focus on this line too much - it was just an example.
More important it in previous Tomcat version parameterMap was not locked and I
could change or add new parameter to this map easily in JSP. 
This code was valid for all the years in JSP file:

request.getParameterMap().put("key", "value");

Suddenly developers decided to lock it, "put" throws exception
and all my web apps doesn't work anymore. 

If using "put" on parameterMap in JSP is incorrect, it should, at least, be
deprecated for a while.

Now I have to go through code of hundreds of pages and add some code to make a
copy of parameterMap.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to