From: Ben W. <bw...@jb...> - 2005-08-21 16:04:47
|
User: bwang Date: 05/08/21 12:04:42 Modified: src/main/org/jboss/web/tomcat/tc5/session FieldBasedClusteredSession.java Log: 1. used direct TreeCacheAop instance 2. use new marshalling in 1.2.4. Revision Changes Path 1.9 +11 -7 jboss-tomcat/src/main/org/jboss/web/tomcat/tc5/session/FieldBasedClusteredSession.java (In the diff below, changes in quantity of whitespace are not shown.) Index: FieldBasedClusteredSession.java =================================================================== RCS file: /cvsroot/jboss/jboss-tomcat/src/main/org/jboss/web/tomcat/tc5/session/FieldBasedClusteredSession.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- FieldBasedClusteredSession.java 14 Aug 2005 16:02:41 -0000 1.8 +++ FieldBasedClusteredSession.java 21 Aug 2005 16:04:42 -0000 1.9 @@ -46,7 +46,7 @@ * <p/> * * @author Ben Wang - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ class FieldBasedClusteredSession extends ClusteredSession implements Serializable, Observer @@ -276,6 +276,8 @@ proxy_.removeObserver(this, oldVal); } + if(value != null) + { // Special case for Collection classes. if( value instanceof Map || value instanceof List || value instanceof Set) { @@ -285,6 +287,8 @@ // Need to use obj since it can return as a proxy. proxy_.addObserver(this, value); + } + // Still need to put it in the map to track locally. attributes_.put(key, value); sessionIsDirty(); |