tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session StandardSession.java
Date Tue, 22 Mar 2005 03:50:03 GMT
billbarker    2005/03/21 19:50:03

  Modified:    catalina/src/share/org/apache/catalina/session
                        StandardSession.java
  Log:
  From the comments for R1.11, it seems that some early version of the spec had an exception
here.  However, this didn't survive to the final spec version, so we can once again allow
access to getLastAccessedTime from an invalid session.
  
  Fix for Bug #34107
  
  Revision  Changes    Path
  1.52      +2 -5      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java
  
  Index: StandardSession.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- StandardSession.java	21 Mar 2005 20:02:21 -0000	1.51
  +++ StandardSession.java	22 Mar 2005 03:50:03 -0000	1.52
  @@ -408,10 +408,7 @@
        * a value associated with the session, do not affect the access time.
        */
       public long getLastAccessedTime() {
  -        if ( !isValid() ) {
  -            throw new IllegalStateException
  -                (sm.getString("standardSession.getLastAccessedTime.ise"));
  -        }
  +
           return (this.lastAccessedTime);
   
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message