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

rmaucher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new ec6ab6ed4e Restore extending classes
ec6ab6ed4e is described below

commit ec6ab6ed4e15c0a0a6a0742c4533df28716bb2e0
Author: remm <[email protected]>
AuthorDate: Wed Jun 24 10:24:58 2026 +0200

    Restore extending classes
---
 .../catalina/valves/AbstractAccessLogValve.java    | 32 +++++++++++-----------
 webapps/docs/changelog.xml                         |  4 +++
 2 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/java/org/apache/catalina/valves/AbstractAccessLogValve.java 
b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
index df81048213..353d0f8510 100644
--- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
+++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
@@ -876,7 +876,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new ThreadNameElement.
          */
-        ThreadNameElement() {
+        public ThreadNameElement() {
         }
 
         /**
@@ -1015,7 +1015,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new HostElement.
          */
-        HostElement() {
+        public HostElement() {
         }
 
         /**
@@ -1064,7 +1064,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new LogicalUserNameElement.
          */
-        LogicalUserNameElement() {
+        public LogicalUserNameElement() {
         }
 
         /**
@@ -1089,7 +1089,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new ProtocolElement.
          */
-        ProtocolElement() {
+        public ProtocolElement() {
         }
 
         /**
@@ -1123,7 +1123,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new UserElement.
          */
-        UserElement() {
+        public UserElement() {
         }
 
         /**
@@ -1199,7 +1199,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Creates a new date and time element using CLF format.
          */
-        protected DateAndTimeElement() {
+        public DateAndTimeElement() {
             this(null);
         }
 
@@ -1237,7 +1237,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
          *
          * @param sdf The SimpleDateFormat pattern or special format identifier
          */
-        protected DateAndTimeElement(String sdf) {
+        public DateAndTimeElement(String sdf) {
             String format = sdf;
             boolean needsEscaping = false;
             if (sdf != null) {
@@ -1345,7 +1345,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new RequestElement.
          */
-        RequestElement() {
+        public RequestElement() {
         }
 
         /**
@@ -1385,7 +1385,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new HttpStatusCodeElement.
          */
-        HttpStatusCodeElement() {
+        public HttpStatusCodeElement() {
         }
 
         /**
@@ -1534,7 +1534,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new MethodElement.
          */
-        MethodElement() {
+        public MethodElement() {
         }
 
         /**
@@ -1663,7 +1663,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new FirstByteTimeElement.
          */
-        FirstByteTimeElement() {
+        public FirstByteTimeElement() {
         }
 
         /**
@@ -1694,7 +1694,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new QueryElement.
          */
-        QueryElement() {
+        public QueryElement() {
         }
 
         /**
@@ -1747,7 +1747,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new SessionIdElement.
          */
-        SessionIdElement() {
+        public SessionIdElement() {
         }
 
         /**
@@ -1781,7 +1781,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new RequestURIElement.
          */
-        RequestURIElement() {
+        public RequestURIElement() {
         }
 
         /**
@@ -1810,7 +1810,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new LocalServerNameElement.
          */
-        LocalServerNameElement() {
+        public LocalServerNameElement() {
         }
 
         /**
@@ -2051,7 +2051,7 @@ public abstract class AbstractAccessLogValve extends 
ValveBase implements Access
         /**
          * Constructs a new ConnectionStatusElement.
          */
-        ConnectionStatusElement() {
+        public ConnectionStatusElement() {
         }
 
         /**
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 9034345b47..c818dfa61c 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -229,6 +229,10 @@
       <fix>
         Avoid NPE in RewriteValve. (markt)
       </fix>
+      <fix>
+        Restore ability to extend many element classes from
+        <code>AbstractAccessLogValve</code>. (remm)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to