Browse Source

fixed JASSIST-206

tags/rel_3_18_1_beta1
chibash 10 years ago
parent
commit
28d3edb1bc
2 changed files with 42 additions and 0 deletions
  1. 6
    0
      Readme.html
  2. 36
    0
      src/main/javassist/util/proxy/RuntimeSupport.java

+ 6
- 0
Readme.html View File

@@ -281,6 +281,12 @@ see javassist.Dump.

<h2>Changes</h2>

<p>-version 3.19
<ul>
<li>JIRA JASSIST-206.
</ul>
</p>

<p>-version 3.18 on June 3, 2013
<ul>
<li>The source code repository has been moved to <a href="https://github.com/jboss-javassist/javassist">GitHub</a></li>.

+ 36
- 0
src/main/javassist/util/proxy/RuntimeSupport.java View File

@@ -55,6 +55,42 @@ public class RuntimeSupport {
methods[index] = findSuperClassMethod(clazz, superMethod, desc);
}

/**
* Finds two methods specified by the parameters and stores them
* into the given array.
*
* <p>Added back for JBoss Seam. See JASSIST-206.</p>
*
* @throws RuntimeException if the methods are not found.
* @see javassist.util.proxy.ProxyFactory
* @deprecated replaced by {@link #find2Methods(Class, String, String, int, String, Method[])}
*/
public static void find2Methods(Object self, String superMethod,
String thisMethod, int index,
String desc, java.lang.reflect.Method[] methods)
{
methods[index + 1] = thisMethod == null ? null
: findMethod(self, thisMethod, desc);
methods[index] = findSuperMethod(self, superMethod, desc);
}

/**
* Finds a method with the given name and descriptor.
* It searches only the class of self.
*
* <p>Added back for JBoss Seam. See JASSIST-206.</p>
*
* @throws RuntimeException if the method is not found.
* @deprecated replaced by {@link #findMethod(Class, String, String)}
*/
public static Method findMethod(Object self, String name, String desc) {
Method m = findMethod2(self.getClass(), name, desc);
if (m == null)
error(self.getClass(), name, desc);

return m;
}

/**
* Finds a method with the given name and descriptor.
* It searches only the class of self.

Loading…
Cancel
Save