[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/util ...
Ben Wang
bwang at jboss.com
Wed Jan 3 03:55:37 EST 2007
User: bwang
Date: 07/01/03 03:55:37
Modified: src-50/org/jboss/cache/pojo/util ObjectUtil.java
Log:
Siwtch RuntimeException to PojoCacheException inside PojoCache.
Revision Changes Path
1.5 +2 -1 JBossCache/src-50/org/jboss/cache/pojo/util/ObjectUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ObjectUtil.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/util/ObjectUtil.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ObjectUtil.java 13 Jul 2006 15:56:13 -0000 1.4
+++ ObjectUtil.java 3 Jan 2007 08:55:37 -0000 1.5
@@ -12,6 +12,7 @@
import org.jboss.cache.CacheException;
import org.jboss.cache.Fqn;
import org.jboss.cache.pojo.CachedType;
+import org.jboss.cache.pojo.PojoCacheException;
import org.jboss.cache.pojo.impl.PojoCacheImpl;
import org.jboss.cache.pojo.memory.FieldPersistentReference;
@@ -54,7 +55,7 @@
{
// Currently we don't support recursive Collection
if (!(originalObject instanceof Advised))
- throw new RuntimeException("ObjectUtil.isReachable(): originalObject is not Advised.");
+ throw new PojoCacheException("ObjectUtil.isReachable(): originalObject is not Advised.");
if (log.isTraceEnabled())
{
More information about the jboss-cvs-commits
mailing list