diff options
author | chibash <chiba@javassist.org> | 2013-07-23 10:18:32 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2013-07-23 10:18:32 +0900 |
commit | 28d3edb1bc50636bb1137d1a862f95bf02c4ffa0 (patch) | |
tree | 86ed98b503252841a67b90505db6b4523271d2fe | |
parent | 0fef5c5f48cb38b8562611db66534bcccf5ebd6c (diff) | |
download | javassist-28d3edb1bc50636bb1137d1a862f95bf02c4ffa0.tar.gz javassist-28d3edb1bc50636bb1137d1a862f95bf02c4ffa0.zip |
fixed JASSIST-206
-rw-r--r-- | Readme.html | 6 | ||||
-rw-r--r-- | src/main/javassist/util/proxy/RuntimeSupport.java | 36 |
2 files changed, 42 insertions, 0 deletions
diff --git a/Readme.html b/Readme.html index c3236845..9820e64b 100644 --- a/Readme.html +++ b/Readme.html @@ -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>. diff --git a/src/main/javassist/util/proxy/RuntimeSupport.java b/src/main/javassist/util/proxy/RuntimeSupport.java index 8c8425f7..371d553d 100644 --- a/src/main/javassist/util/proxy/RuntimeSupport.java +++ b/src/main/javassist/util/proxy/RuntimeSupport.java @@ -56,6 +56,42 @@ public class RuntimeSupport { } /** + * 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. * |