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 /src/main/javassist | |
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
Diffstat (limited to 'src/main/javassist')
-rw-r--r-- | src/main/javassist/util/proxy/RuntimeSupport.java | 5 |
1 files changed, 4 insertions, 1 deletions
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); |