Re: JAXRPCServlet does not call super.init()

From: Robert Lowe <rmlowe_at_RMLOWE.COM>
Date: Wed, 16 Apr 2003 16:59:56 +0800

Tim, which overloading of init are you referring to, the no-arg version or
the version that takes a ServletContext?

I believe that the no-arg version in HttpServlet is a no-op, so calling it
from a subclass achieves nothing--it's there only to be overriden. The
single-arg version is responsible for initializing the ServletContext. So
subclasses may *either* override the no-arg version, in which case there's
no need to invoke super.init(), *or* override the single-arg version, in
which case they should call the superclass version.

----- Original Message -----
From: "Tim Young" <dh_jaxrpc_at_UGCS.NET>
Sent: Wednesday, April 16, 2003 12:43 PM
Subject: JAXRPCServlet does not call super.init()

> Hi,
> I am looking at the source code for JAX-RPC 1.0 RI and I noticed (the hard
way) that the JAXRPCServlet does not call super.init() in its init() method.
That means that any servlet that extends it, won't get a properly
initialized ServletContext. I thought that all servlets that extended
HttpServlet were supposed to call super.init() ...
> Do you happen to know if it's fixed in later versions and if so, what
version? If not can someone please file a bug or if you tell me how, I will
file one.
> Thank you.
> TY