[Webfunds-commits] java/webfunds/client SepFileStore.java

Ian Grigg iang@cypherpunks.ai
Mon, 10 Jul 2000 13:39:43 -0400 (AST)


iang        00/07/10 13:39:43

  Modified:    webfunds/client SepFileStore.java
  Log:
  dropped the stack traces on Serialize recovery on objects that are
  not serialized but are in fact Encodable.  This is not an error, as
  the code just tries both and one day we'd like to deprecate the
  Serializable.

Revision  Changes    Path
1.41      +6 -5      java/webfunds/client/SepFileStore.java

Index: SepFileStore.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/SepFileStore.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- SepFileStore.java	2000/06/05 04:23:39	1.40
+++ SepFileStore.java	2000/07/10 17:39:42	1.41
@@ -1,5 +1,5 @@
 /*
- * $Id: SepFileStore.java,v 1.40 2000/06/05 04:23:39 gelderen Exp $
+ * $Id: SepFileStore.java,v 1.41 2000/07/10 17:39:42 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -130,7 +130,6 @@
         
     private boolean readObjectFile(File file)
     {
-//logmsg("normal SepFile reading.... " + file.getName());
         try
         {
             FileInputStream fis = new FileInputStream(file);
@@ -140,12 +139,14 @@
         }
         catch (ClassNotFoundException ex)
         {
-            ex.printStackTrace();
+            logmsg("ClassNotFoundException " + ex);
+            // ex.printStackTrace();
             return false ;
         }
         catch (IOException ex)
         {
-            ex.printStackTrace();
+            logmsg("IOException " + ex);
+            // ex.printStackTrace();
             return false ;
         }
 
@@ -154,7 +155,7 @@
 
     protected boolean readEncodedFile(File file)
     {
-logmsg("ENCODED SepFile reading.... " + file.getName());
+        //logmsg("ENCODED SepFile reading.... " + file.getName());
         FileInputStream fis;
         try {
             fis = new FileInputStream(file);