You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/05/01 15:23:18 UTC

svn commit: r534071 - /incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/lang/Objects.java

Author: ehillenius
Date: Tue May  1 06:23:15 2007
New Revision: 534071

URL: http://svn.apache.org/viewvc?view=rev&rev=534071
Log:
set default serialization back again. There are at least 3 reported problems (see mailing list) with custom serialization, and they have been reported quite some time ago. Until they are fixed we should use the stable serialization. And like I've argued on the mailing list, I think we *always* should use default serialization as at least we know it's solid, and custom serialization is an optimization.

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=534071&r1=534070&r2=534071
==============================================================================
--- 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 Tue May  1 06:23:15 2007
@@ -36,7 +36,6 @@
 import org.apache.wicket.settings.IApplicationSettings;
 import org.apache.wicket.util.io.ByteCountingOutputStream;
 import org.apache.wicket.util.io.IObjectStreamFactory;
-import org.apache.wicket.util.io.WicketObjectStreamFactory;
 import org.apache.wicket.util.io.IObjectStreamFactory.DefaultObjectStreamFactory;
 import org.apache.wicket.util.string.Strings;
 import org.slf4j.Logger;
@@ -130,7 +129,8 @@
 			catch (ClassNotFoundException ex1)
 			{
 				// ignore this exception.
-				log.debug("Class not found by using objects own classloader, trying the IClassResolver");
+				log
+						.debug("Class not found by using objects own classloader, trying the IClassResolver");
 			}
 
 			Application application = Application.get();
@@ -245,7 +245,7 @@
 	 * opposed to in Application, as the Application most likely isn't available
 	 * in the threads we'll be using this with.
 	 */
-	private static IObjectStreamFactory objectStreamFactory = new WicketObjectStreamFactory();
+	private static IObjectStreamFactory objectStreamFactory = new IObjectStreamFactory.DefaultObjectStreamFactory();
 
 	/**
 	 * Strategy for calculating sizes of objects. Note: I didn't make this an