tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r886019 - /tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java
Date Wed, 02 Dec 2009 00:31:33 GMT
Author: markt
Date: Wed Dec  2 00:31:33 2009
New Revision: 886019

URL: http://svn.apache.org/viewvc?rev=886019&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47502
Don't try and replicate attributes we know to be non-serializable
Patch by Tim Funk

Modified:
    tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java?rev=886019&r1=886018&r2=886019&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/DeltaSession.java Wed Dec  2 00:31:33
2009
@@ -731,7 +731,7 @@
         for (int i = 0; i < keys.length; i++) {
             Object value = null;
             value = attributes.get(keys[i]);
-            if (value == null)
+            if (value == null || exclude(keys[i]))
                 continue;
             else if (value instanceof Serializable) {
                 saveNames.add(keys[i]);



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


Mime
View raw message