This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
     new c4cc16d  Make the StandardContext.postWorkDirectory() protected
c4cc16d is described below

commit c4cc16d8d99d278e14a229c20d31d01dfa8ec995
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Mar 3 18:55:27 2021 +0000

    Make the StandardContext.postWorkDirectory() protected
    
    To help users wishing to customise the default work directory behaviour
---
 java/org/apache/catalina/core/StandardContext.java | 2 +-
 webapps/docs/changelog.xml                         | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/core/StandardContext.java 
b/java/org/apache/catalina/core/StandardContext.java
index b3673ec..c213797 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -6036,7 +6036,7 @@ public class StandardContext extends ContainerBase
     /**
      * Set the appropriate context attribute for our work directory.
      */
-    private void postWorkDirectory() {
+    protected void postWorkDirectory() {
 
         // Acquire (or calculate) the work directory path
         String workDir = getWorkDir();
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 880dad9..47f4a7d 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -128,6 +128,11 @@
         <code>setLocale()</code> with the recent clarification from the Jakarta
         Servlet project of the expected behaviour in these cases. (markt)
       </fix>
+      <scode>
+        Make the <code>StandardContext.postWorkDirectory()</code> protected
+        rather than private to help users wishing to customise the default
+        work directory behaviour. (markt)
+      </scode>
     </changelog>
   </subsection>
   <subsection name="Coyote">


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

Reply via email to