[webbeans-commits] Webbeans SVN: r3360 - ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Wed Jul 29 20:00:31 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-07-29 20:00:31 -0400 (Wed, 29 Jul 2009)
New Revision: 3360
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java
Log:
WBRI-293
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java 2009-07-29 23:15:49 UTC (rev 3359)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java 2009-07-30 00:00:31 UTC (rev 3360)
@@ -74,7 +74,7 @@
* context lookup
*
* @param self the proxy instance.
- * @param thisMethod the overridden method declared in the super class or
+ * @param proxiedMethod the overridden method declared in the super class or
* interface.
* @param proceed the forwarder method for invoking the overridden method. It
* is null if the overridden mehtod is abstract or declared in the
@@ -101,6 +101,10 @@
// getting lazy created
return null;
}
+ if (proxiedMethod.getName().equals("equals") && proxiedMethod.getParameterTypes().length == 1 && proxiedMethod.getParameterTypes()[0] == Object.class && args[0] == self)
+ {
+ return true;
+ }
try
{
Object returnValue = Reflections.lookupMethod(proxiedMethod, proxiedInstance).invoke(proxiedInstance, args);
More information about the weld-commits
mailing list