Author: asmuts
Date: Thu Feb 16 07:14:41 2006
New Revision: 378271
URL: http://svn.apache.org/viewcvs?rev=378271&view=rev
Log:
made base exception 1.3 compatible without commons lang.
added more info on tests, since JCS keeps coming out ahead.
Modified:
jakarta/jcs/trunk/src/java/org/apache/jcs/access/exception/CacheException.java
jakarta/jcs/trunk/xdocs/JCSvsEHCache.xml
Modified:
jakarta/jcs/trunk/src/java/org/apache/jcs/access/exception/CacheException.java
URL:
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/java/org/apache/jcs/access/exception/CacheException.java?rev=378271&r1=378270&r2=378271&view=diff
==============================================================================
---
jakarta/jcs/trunk/src/java/org/apache/jcs/access/exception/CacheException.java
(original)
+++
jakarta/jcs/trunk/src/java/org/apache/jcs/access/exception/CacheException.java
Thu Feb 16 07:14:41 2006
@@ -17,20 +17,21 @@
*/
//import org.apache.commons.lang.exception.NestableException;
-
/**
* This is the most general exception the cache throws.
- *
+ *
+ * TODO make nested with no external dependencies.
+ *
*/
public class CacheException
extends Exception
- //extends NestableException
+// extends NestableException
{
private static final long serialVersionUID = 8725795372935590265L;
- /**
- * Default
+ /**
+ * Default
*/
public CacheException()
{
@@ -44,7 +45,7 @@
*/
public CacheException( Throwable nested )
{
- super( nested );
+ super( nested.getMessage() );
}
/**
@@ -57,18 +58,4 @@
super( message );
}
- /**
- * Constructs a new <code>CacheException</code> with specified detail
- * message and nested <code>Throwable</code>.
- *
- * @param msg
- * the error message.
- * @param nested
- * the exception or error that caused this exception to be
- * thrown.
- */
- public CacheException( String msg, Throwable nested )
- {
- super( msg, nested );
- }
}
Modified: jakarta/jcs/trunk/xdocs/JCSvsEHCache.xml
URL:
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/xdocs/JCSvsEHCache.xml?rev=378271&r1=378270&r2=378271&view=diff
==============================================================================
--- jakarta/jcs/trunk/xdocs/JCSvsEHCache.xml (original)
+++ jakarta/jcs/trunk/xdocs/JCSvsEHCache.xml Thu Feb 16 07:14:41 2006
@@ -31,8 +31,10 @@
reached, JCS and EHCache perform similarly for
puts and
gets. Although JCS gets are significantly
faster when
the items are present, they are almost exactly
the same
- when the items are not in the cache. My tests
revealed a
- less than 1% difference.
+ when the items are not in the cache. My initial
tests
+ revealed a less than 1% difference, but
subsequent runs
+ showed JCS as 20% faster. More tests are needed
before
+ the results are conclusive.
</p>
<p>
Since, neither cache will be a relevant
bottleneck in
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]