alex 00/07/06 07:30:10
Modified: src/share/org/apache/jasper/runtime HttpJspBase.java
Log:
Bugfix: this class had its own shadow copy of ServletConfig object;
this meant that the private ServletConfig owned by the superclass
GenericServlet was left null, which led to log("foo") crashing with a
NPE. Solution: remove this class' shadow copy, insert call to
super.init(config).
Revision Changes Path
1.5 +1 -6 jakarta-tomcat/src/share/org/apache/jasper/runtime/HttpJspBase.java
Index: HttpJspBase.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/HttpJspBase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- HttpJspBase.java 2000/06/23 21:37:24 1.4
+++ HttpJspBase.java 2000/07/06 14:30:09 1.5
@@ -78,7 +78,6 @@
extends HttpServlet
implements HttpJspPage
{
- private ServletConfig config;
private ClassLoader cl;
protected PageContext pageContext;
@@ -89,12 +88,8 @@
public final void init(ServletConfig config)
throws ServletException
{
- this.config = config;
+ super.init(config);
jspInit();
- }
-
- public final ServletConfig getServletConfig() {
- return config;
}
public String getServletInfo() {
|