<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I made a decision to use object serialization because Configuration is
a really complex object now and likely to change. Field-by-field
cloning is very brittle as it is easy to forget to clone newly added
fields. But if we are careful.... I see that Mircea changed this to
field-by-field clone. We should perhaps add a note for maintenance of
these fields.<br>
<br>
Cheers<br>
<br>
On 8/4/09 2:15 PM, Manik Surtani wrote:
<blockquote cite="mid:928CD7F1-9517-448E-8A66-9A9A6288BE6F@jboss.org"
type="cite">
<pre wrap="">Hmm, that is weird.
Don't intent to point fingers or anything :) but Vladimir [1], any
specific reason to handle clone() in this way?
Cheers
Manik
[1] <a class="moz-txt-link-freetext" href="http://fisheye.jboss.org/browse/Infinispan/trunk/core/src/main/java/org/infinispan/config/Configuration.java?r=625">http://fisheye.jboss.org/browse/Infinispan/trunk/core/src/main/java/org/infinispan/config/Configuration.java?r=625</a>
On 4 Aug 2009, at 12:33, Mircea Markus wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Configuration.clone is implemented with object serialization. AFAIK
this
is not a good practice for several reasons, one of them is that all
the
objects aggregated by Configuration must be serializable. While this
*might* be ok for Configuration elements within our scope (infinispan)
this will unnecessarily enforce the extensions (e.g.
<aCustomCacheStore>Configuration) to be serializable.
Cheers,
Mircea
_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
</pre>
</blockquote>
<pre wrap=""><!---->
--
Manik Surtani
<a class="moz-txt-link-abbreviated" href="mailto:manik@jboss.org">manik@jboss.org</a>
Lead, Infinispan
Lead, JBoss Cache
<a class="moz-txt-link-freetext" href="http://www.infinispan.org">http://www.infinispan.org</a>
<a class="moz-txt-link-freetext" href="http://www.jbosscache.org">http://www.jbosscache.org</a>
_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>