FreeMarkerConfigurationFactory's instance variable become enlarged whenever call create method. [SPR-9389] #14025
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
SPT Developer opened SPR-9389 and commented
"FreeMarkerConfigurationFactory.createConfiguration()" uses instance variable "templateLoaders" (List).
This method adds loaders to "templateLoaders" directly.
If I call this method many times, "templateLoaders" contains great number of same loader.
I think, local variable is need for loaders.
! templateLoaders.addAll(this.preTemplateLoaders);
}
...
Thank you for your consideration.
Affects: 3.0.3
Backported to: 3.1.4
The text was updated successfully, but these errors were encountered: