Re: Tomcat 10.1.56: Extending RequestElement no longer works!

Rémy Maucherat <[email protected]> Wed, 24 Jun 2026 00:22:45 +0200
Newsgroups gmane.comp.jakarta.tomcat.user
Message-ID <CANwj8ZqHg7vAk_ehuFb_WdW-jXh8EOXpHmT14jm809mppzvKww@mail.gmail.com>
On Tue, Jun 23, 2026 at 10:52=E2=80=AFPM Christopher Schultz
<[email protected]> wrote:
>
> 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 =C2=B7 apache/tomcat@53c8f1e<https://git=
hub.com/apache/tomcat/commit/53c8f1ef59cb2bd1f03b7348b59263bfe3738550#diff-=
2a57b3aba46c5951ddee8deb44f6e415f08899734b938fd114ceb7ffc1a4df14>
> >
> > In 10.1.56, above change has caused breakage in code extending from Req=
uestElement .
> >
> >
> >           error: RequestElement() is not public in RequestElement; cann=
ot 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?

This is a bit random. Some of the constructors are public, others
protected, and now I added some package ones (not very fun, should be
either public or protected).

R=C3=A9my

> I'd like to see the code you have and the declaration of the enclosing
> class(es).
>
> -chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>