openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1829157 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/AbstractProxyFactory.java
Date Sat, 14 Apr 2018 17:42:34 GMT
Author: rmannibucau
Date: Sat Apr 14 17:42:34 2018
New Revision: 1829157

URL: http://svn.apache.org/viewvc?rev=1829157&view=rev
Log:
OWB-1238 don't visit code when we just guess the java version of a class

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

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/AbstractProxyFactory.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/AbstractProxyFactory.java?rev=1829157&r1=1829156&r2=1829157&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/AbstractProxyFactory.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/AbstractProxyFactory.java
Sat Apr 14 17:42:34 2018
@@ -18,7 +18,9 @@
  */
 package org.apache.webbeans.proxy;
 
+import static org.apache.xbean.asm6.ClassReader.SKIP_CODE;
 import static org.apache.xbean.asm6.ClassReader.SKIP_DEBUG;
+import static org.apache.xbean.asm6.ClassReader.SKIP_FRAMES;
 
 import java.io.InputStream;
 import java.lang.reflect.Constructor;
@@ -342,7 +344,7 @@ public abstract class AbstractProxyFacto
             }
             final ClassReader reader = new ClassReader(stream);
             final VersionVisitor visitor = new VersionVisitor();
-            reader.accept(visitor, SKIP_DEBUG);
+            reader.accept(visitor, SKIP_DEBUG + SKIP_CODE + SKIP_FRAMES);
             if (visitor.version != 0)
             {
                 return visitor.version;
@@ -900,7 +902,6 @@ public abstract class AbstractProxyFacto
         public void visit(final int version, final int access, final String name,
                           final String signature, final String superName, final String[]
interfaces)
         {
-            super.visit(version, access, name, signature, superName, interfaces);
             this.version = version;
         }
     }



Mime
View raw message