[jboss-cvs] javassist SVN: r645 - in trunk: src/main/javassist/util/proxy and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 3 17:01:48 EDT 2012


Author: chiba
Date: 2012-08-03 17:01:48 -0400 (Fri, 03 Aug 2012)
New Revision: 645

Modified:
   trunk/Readme.html
   trunk/src/main/javassist/util/proxy/RuntimeSupport.java
Log:
fixed JASSIST-163

Modified: trunk/Readme.html
===================================================================
--- trunk/Readme.html	2012-08-03 20:24:33 UTC (rev 644)
+++ trunk/Readme.html	2012-08-03 21:01:48 UTC (rev 645)
@@ -284,7 +284,7 @@
 <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

Modified: trunk/src/main/javassist/util/proxy/RuntimeSupport.java
===================================================================
--- trunk/src/main/javassist/util/proxy/RuntimeSupport.java	2012-08-03 20:24:33 UTC (rev 644)
+++ trunk/src/main/javassist/util/proxy/RuntimeSupport.java	2012-08-03 21:01:48 UTC (rev 645)
@@ -50,7 +50,10 @@
                                     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);



More information about the jboss-cvs-commits mailing list