[jboss-cvs] JBossCache/src/org/jboss/cache/marshall ...
Manik Surtani
msurtani at jboss.com
Wed Jan 31 12:09:32 EST 2007
User: msurtani
Date: 07/01/31 12:09:32
Modified: src/org/jboss/cache/marshall CacheMarshaller200.java
Log:
Allow the use of non-serializable objects if using JBoss Serialization
Revision Changes Path
1.9 +1 -1 JBossCache/src/org/jboss/cache/marshall/CacheMarshaller200.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheMarshaller200.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/marshall/CacheMarshaller200.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- CacheMarshaller200.java 26 Jan 2007 11:35:13 -0000 1.8
+++ CacheMarshaller200.java 31 Jan 2007 17:09:32 -0000 1.9
@@ -384,7 +384,7 @@
out.writeByte(MAGICNUMBER_GRAVITATERESULT);
marshallGravitateResult((GravitateResult) o, out, refMap);
}
- else if (o instanceof Serializable)
+ else if (o instanceof Serializable || ObjectSerializationFactory.useJBossSerialization())
{
int refId = createReference(o, refMap);
if (log.isTraceEnabled())
More information about the jboss-cvs-commits
mailing list