openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1594926 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
Date Thu, 15 May 2014 14:21:08 GMT
Author: struberg
Date: Thu May 15 14:21:08 2014
New Revision: 1594926

URL: http://svn.apache.org/r1594926
Log:
OWB-957 handle freak case when a class has > 2^15 methods

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java?rev=1594926&r1=1594925&r2=1594926&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java
Thu May 15 14:21:08 2014
@@ -459,11 +459,15 @@ public class InterceptorDecoratorProxyFa
         {
             mv.visitIntInsn(Opcodes.BIPUSH, methodIndex);
         }
-        else
+        else if (methodIndex < 32267)
         {
             // for methods > 127 we need to push a short number as index
             mv.visitIntInsn(Opcodes.SIPUSH, methodIndex);
         }
+        else
+        {
+            throw new ProxyGenerationException("Sorry, we only support Classes with 2^15
methods...");
+        }
 
         // and now load the Method from the array
         mv.visitInsn(Opcodes.AALOAD);



Mime
View raw message