[jboss-cvs] javassist SVN: r700 - trunk/src/main/javassist/util/proxy.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 26 12:46:17 EDT 2013
Author: chiba
Date: 2013-03-26 12:46:17 -0400 (Tue, 26 Mar 2013)
New Revision: 700
Modified:
trunk/src/main/javassist/util/proxy/RuntimeSupport.java
Log:
fixed JASSIST-183
Modified: trunk/src/main/javassist/util/proxy/RuntimeSupport.java
===================================================================
--- trunk/src/main/javassist/util/proxy/RuntimeSupport.java 2013-01-03 01:29:59 UTC (rev 699)
+++ trunk/src/main/javassist/util/proxy/RuntimeSupport.java 2013-03-26 16:46:17 UTC (rev 700)
@@ -52,7 +52,7 @@
{
methods[index + 1] = thisMethod == null ? null
: findMethod(clazz, thisMethod, desc);
- methods[index] = findSuperMethod(clazz, superMethod, desc);
+ methods[index] = findSuperClassMethod(clazz, superMethod, desc);
}
/**
@@ -75,7 +75,19 @@
*
* @throws RuntimeException if the method is not found.
*/
- public static Method findSuperMethod(Class clazz, String name, String desc) {
+ public static Method findSuperMethod(Object self, String name, String desc) {
+ // for JBoss Seam. See JASSIST-183.
+ Class clazz = self.getClass();
+ return findSuperClassMethod(clazz, name, desc);
+ }
+
+ /**
+ * Finds a method that has the given name and descriptor and is declared
+ * in the super class.
+ *
+ * @throws RuntimeException if the method is not found.
+ */
+ public static Method findSuperClassMethod(Class clazz, String name, String desc) {
Method m = findSuperMethod2(clazz.getSuperclass(), name, desc);
if (m == null)
m = searchInterfaces(clazz, name, desc);
More information about the jboss-cvs-commits
mailing list