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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jleroux@apache.org
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 + ")");            
     }
 }