Make the StandardContext.postWorkDirectory() protected
To help users wishing to customise the default work directory behaviour
diff --git a/java/org/apache/catalina/core/StandardContext.java b/java/org/apache/catalina/core/StandardContext.java
index 058664c..5518690 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -6054,7 +6054,7 @@
/**
* 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 e81fef9..c2cb87b 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -142,6 +142,11 @@
Correct syntax error in output of <code>JsonErrorReportValve</code>.
Pull request provided by Viraj Kanwade. (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">