Serialize proxies to non-proxy copies.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
A. Abram White 2006-12-12 00:06:28 +00:00
parent 600d949140
commit 6dff15b02f
1 changed files with 3 additions and 0 deletions

View File

@ -79,9 +79,12 @@ public class Proxies {
* Used by proxy types to serialize non-proxy versions.
*/
public static Object writeReplace(Proxy proxy) {
// we can't send dynamically-created classes to another JVM
/*
if (proxy == null || proxy.getOwner() == null
|| proxy.getOwner().isDetached())
return proxy;
*/
return proxy.copy(proxy);
}
}