incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1051909 - /incubator/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyHandler.java
Date Wed, 22 Dec 2010 14:16:51 GMT
Author: gnodet
Date: Wed Dec 22 14:16:51 2010
New Revision: 1051909

URL: http://svn.apache.org/viewvc?rev=1051909&view=rev
Log:
[ARIES-522] Proxy equality always return true

Modified:
    incubator/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyHandler.java

Modified: incubator/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyHandler.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyHandler.java?rev=1051909&r1=1051908&r2=1051909&view=diff
==============================================================================
--- incubator/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyHandler.java
(original)
+++ incubator/aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyHandler.java
Wed Dec 22 14:16:51 2010
@@ -68,7 +68,7 @@ public final class ProxyHandler implemen
             && method.getDeclaringClass() == Object.class) {
         Object targetObject = args[0];
         if (proxyManager.isProxy(targetObject)) {
-          args[0] = proxyManager.unwrap(proxy).call();
+          args[0] = proxyManager.unwrap(targetObject).call();
         }
     } else if (method.getName().equals("finalize") && method.getParameterTypes().length
== 0) {
         // special case finalize, don't route through to delegate because that will get its
own call



Mime
View raw message