tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session StandardSession.java
Date Tue, 25 Nov 2003 07:56:27 GMT
remm        2003/11/24 23:56:27

  Modified:    catalina/src/share/org/apache/catalina/session
                        StandardSession.java
  Log:
  - It seems that, for consistency, getLastAccessedTime should not throw an
    ISE while expiring. This allows addressing bug 9077.
  - Patch submitted by Brian Stansberry.
  
  Revision  Changes    Path
  1.25      +7 -8      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.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- StandardSession.java	3 Oct 2003 01:53:17 -0000	1.24
  +++ StandardSession.java	25 Nov 2003 07:56:27 -0000	1.25
  @@ -443,10 +443,9 @@
        * a value associated with the session, do not affect the access time.
        */
       public long getLastAccessedTime() {
  -        if ( !isValid ) {
  -            throw new IllegalStateException(
  -                sm.getString("standardSession.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