You are viewing a plain text version of this content. The canonical link for it is here.
Posted to servletapi-dev@jakarta.apache.org by da...@locus.apache.org on 2000/08/23 01:28:00 UTC
cvs commit: jakarta-servletapi/src/share/javax/servlet/http HttpSessionEvent.java
dannyc 00/08/22 16:27:58
Modified: src/share/javax/servlet/http Tag: SERVLET_23_JSP_12
HttpSessionEvent.java
Log:
fix implementation bug in the API classes.
HttpSessionEvent was returning null from the getSession() call instead of the session that caused the event, contrary to the javadoc.
Revision Changes Path
No revision
No revision
1.1.2.2 +3 -1 jakarta-servletapi/src/share/javax/servlet/http/Attic/HttpSessionEvent.java
Index: HttpSessionEvent.java
===================================================================
RCS file: /home/cvs/jakarta-servletapi/src/share/javax/servlet/http/Attic/HttpSessionEvent.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- HttpSessionEvent.java 2000/08/17 01:33:13 1.1.2.1
+++ HttpSessionEvent.java 2000/08/22 23:27:57 1.1.2.2
@@ -71,6 +71,8 @@
super(source);
}
/** Return the session that changed.*/
- public HttpSession getSession () { return null;}
+ public HttpSession getSession () {
+ return (HttpSession) super.getSource();
+ }
}