openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r485960 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/Proxies.java
Date Tue, 12 Dec 2006 00:06:29 GMT
Author: awhite
Date: Mon Dec 11 16:06:28 2006
New Revision: 485960

URL: http://svn.apache.org/viewvc?view=rev&rev=485960
Log:
Serialize proxies to non-proxy copies.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/Proxies.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/Proxies.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/Proxies.java?view=diff&rev=485960&r1=485959&r2=485960
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/Proxies.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/Proxies.java
Mon Dec 11 16:06:28 2006
@@ -79,9 +79,12 @@
      * 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);
     }
 }



Mime
View raw message