mirror of https://github.com/apache/openjpa.git
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:
parent
600d949140
commit
6dff15b02f
|
@ -79,9 +79,12 @@ public class Proxies {
|
||||||
* Used by proxy types to serialize non-proxy versions.
|
* Used by proxy types to serialize non-proxy versions.
|
||||||
*/
|
*/
|
||||||
public static Object writeReplace(Proxy proxy) {
|
public static Object writeReplace(Proxy proxy) {
|
||||||
|
// we can't send dynamically-created classes to another JVM
|
||||||
|
/*
|
||||||
if (proxy == null || proxy.getOwner() == null
|
if (proxy == null || proxy.getOwner() == null
|
||||||
|| proxy.getOwner().isDetached())
|
|| proxy.getOwner().isDetached())
|
||||||
return proxy;
|
return proxy;
|
||||||
|
*/
|
||||||
return proxy.copy(proxy);
|
return proxy.copy(proxy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue