diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-08-03 21:01:48 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-08-03 21:01:48 +0000 |
commit | 962a750f485d1a4c9bd431902f4bdf63b35bf3c4 (patch) | |
tree | 084f3936c5d64819ac849a92b8f6f1c26165e34b | |
parent | 991747ba2c2a9472daaa3e51582aeb8ccf4ac791 (diff) | |
download | javassist-962a750f485d1a4c9bd431902f4bdf63b35bf3c4.tar.gz javassist-962a750f485d1a4c9bd431902f4bdf63b35bf3c4.zip |
fixed JASSIST-163
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@645 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | Readme.html | 2 | ||||
-rw-r--r-- | src/main/javassist/util/proxy/RuntimeSupport.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Readme.html b/Readme.html index 0d292238..33bf8894 100644 --- a/Readme.html +++ b/Readme.html @@ -284,7 +284,7 @@ see javassist.Dump. <p>-version 3.17 <ul> <li>OSGi bundle info is now included in the jar file. - <li>JIRA JASSIST-166, 168, 170 have been fixed. + <li>JIRA JASSIST-163, 166, 168, 170, 171 have been fixed. </ul> <p>-version 3.16.1 on March 6, 2012 diff --git a/src/main/javassist/util/proxy/RuntimeSupport.java b/src/main/javassist/util/proxy/RuntimeSupport.java index 3971e395..48cacecd 100644 --- a/src/main/javassist/util/proxy/RuntimeSupport.java +++ b/src/main/javassist/util/proxy/RuntimeSupport.java @@ -50,7 +50,10 @@ public class RuntimeSupport { String thisMethod, int index, String desc, java.lang.reflect.Method[] methods) { - if (methods[index] == null) { + /* Once methods[index] and methods[index + 1] are set to non-null, + * then their values never change. + */ + if (methods[index] == null || methods[index + 1] == null) { Method m1 = thisMethod == null ? null : findMethod(self, thisMethod, desc); Method m0 = findSuperMethod(self, superMethod, desc); |