You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/04/26 18:56:42 UTC
svn commit: r532803 -
/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java
Author: ivaynberg
Date: Thu Apr 26 09:56:41 2007
New Revision: 532803
URL: http://svn.apache.org/viewvc?view=rev&rev=532803
Log:
who thought swallowing an exception is a Good Thing???
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java?view=diff&rev=532803&r1=532802&r2=532803
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java Thu Apr 26 09:56:41 2007
@@ -403,21 +403,21 @@
}
catch (ClassNotFoundException e)
{
- e.printStackTrace();
- return null;
+ throw new RuntimeException("Could not deserialize object using `"
+ + objectStreamFactory.getClass().getName() + "` object factory", e);
}
catch (IOException e)
{
- e.printStackTrace();
- return null;
+ throw new RuntimeException("Could not deserialize object using `"
+ + objectStreamFactory.getClass().getName() + "` object factory", e);
}
}
/**
* Makes a deep clone of an object by serializing and deserializing it. The
* object must be fully serializable to be cloned. This method will not
- * clone wicket Components, it will just reuse those instances so
- * that the complete component tree is not copied over only the model data.
+ * clone wicket Components, it will just reuse those instances so that the
+ * complete component tree is not copied over only the model data.
*
* @param object
* The object to clone