Re: Tomcat 10.1.56: Extending RequestElement no longer works!

Christopher Schultz <[email protected]> Tue, 23 Jun 2026 16:51:46 -0400
Newsgroups gmane.comp.jakarta.tomcat.user
Message-ID <[email protected]>
Amit,

On 6/23/26 2:01 PM, Amit Pande via users wrote:
> Hello,
> 
> protected static class RequestElement implements AccessLogElement {
> 
> /**
> * Constructs a new RequestElement.
> */
> RequestElement() {
> 
> 
> Javadoc fixes and improvements ยท apache/tomcat@53c8f1e<https://github.com/apache/tomcat/commit/53c8f1ef59cb2bd1f03b7348b59263bfe3738550#diff-2a57b3aba46c5951ddee8deb44f6e415f08899734b938fd114ceb7ffc1a4df14>
> 
> In 10.1.56, above change has caused breakage in code extending from RequestElement .
> 
> 
>           error: RequestElement() is not public in RequestElement; cannot be accessed from outside package
> 
> 
> Is this change intentional? If yes, what is the recommended alternate?

This is a protected class. How (exactly) are you using it in your code?

I'd like to see the code you have and the declaration of the enclosing 
class(es).

-chris