Hi:

I tried to compile the lastest CVS and it does not compile. Here is the
patch to allow the current CVS to compile (including tests).

Best Regards,

Antonio Gallardo
Index: RemoteCacheClientTest.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-turbine-jcs/src/test/org/apache/jcs/auxiliary/remote/RemoteCacheClientTest.java,v
retrieving revision 1.2
diff -u -r1.2 RemoteCacheClientTest.java
--- RemoteCacheClientTest.java  15 Apr 2004 19:24:19 -0000      1.2
+++ RemoteCacheClientTest.java  8 Jun 2004 21:19:09 -0000
@@ -18,25 +18,16 @@
 
 import java.io.IOException;
 import java.io.Serializable;
-
 import java.net.MalformedURLException;
-
 import java.rmi.Naming;
 import java.rmi.NotBoundException;
-import java.rmi.Remote;
 import java.rmi.registry.Registry;
-
 import java.rmi.server.ExportException;
 import java.rmi.server.UnicastRemoteObject;
 
-import org.apache.jcs.access.exception.ObjectExistsException;
-import org.apache.jcs.access.exception.ObjectNotFoundException;
-
 import org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheConstants;
 import org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheListener;
-
 import org.apache.jcs.engine.CacheElement;
-
 import org.apache.jcs.engine.behavior.ICacheElement;
 import org.apache.jcs.engine.behavior.ICacheObserver;
 import org.apache.jcs.engine.behavior.ICacheService;
@@ -60,7 +51,7 @@
     final int count;
 
     /** Description of the Field */
-    protected static byte listenerId = 0;
+    protected static long listenerId = 0;
 
 
     /**
@@ -183,7 +174,7 @@
                 {
                     cache.update( cb );
                 }
-                catch ( ObjectExistsException oee )
+                catch ( Exception oee )
                 {
                     p( oee.toString() );
                 }
@@ -195,7 +186,7 @@
                     Object val = cache.get( cb.getCacheName(), cb.getKey() );
                     p( "get " + cb.getKey() + " returns " + val );
                 }
-                catch ( ObjectNotFoundException onfe )
+                catch ( Exception onfe )
                 {
                 }
             }
@@ -284,10 +275,10 @@
      *
      * @param id The new listenerId value
      */
-    public void setListenerId( byte id )
+    public void setListenerId( long id )
         throws IOException
     {
-        this.listenerId = id;
+        RemoteCacheClientTest.listenerId = id;
         p( "listenerId = " + id );
     }
 
@@ -297,10 +288,10 @@
      *
      * @return The listenerId value
      */
-    public byte getListenerId()
+    public long getListenerId()
         throws IOException
     {
-        return this.listenerId;
+        return RemoteCacheClientTest.listenerId;
     }
 
     /** Helper for output, this is an user run test class */
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to