You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2010/09/16 00:19:26 UTC

svn commit: r997526 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java

Author: jleroux
Date: Wed Sep 15 22:19:26 2010
New Revision: 997526

URL: http://svn.apache.org/viewvc?rev=997526&view=rev
Log:
Reverts r991485 and adds a comment to avoid this in the future

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java?rev=997526&r1=997525&r2=997526&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java Wed Sep 15 22:19:26 2010
@@ -398,8 +398,7 @@ public final class UtilIO {
                 sb.append(writer.toString());
                 return;
             }
-        } catch (Exception e) {
-            throw new IOException("Can't write (" + value + ")");            
-        }
+        } catch (Exception e) {} //Empty catch because writeObject() calls encodeObject(), which *always* returns true, unless an error occurs.  
+        throw new IOException("Can't write (" + value + ")");            
     }
 }