arunmanni-ai opened a new pull request, #1781:
URL: https://github.com/apache/struts/pull/1781

   The XSLT template cache in XSLTResult uses a plain HashMap with an 
   unsynchronized get() outside the synchronized block. This can produce 
   stale reads or internal corruption under concurrent access.
   
   This patch:
   - Replaces HashMap with ConcurrentHashMap for thread-safe reads
   - Adds double-check inside the synchronized block to avoid 
     redundant template compilation
   - Removes the static initializer in favour of inline initialization


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to