Guillaume,

Does this change still allow running with ASM 5?    The OpCodes class in 5.0.3 
doesn’t have the V1_9 code.   Thus, I’m not sure if this will work when this 
method is hit when using ASM5.

Dan


> On Jul 26, 2016, at 5:15 AM, [email protected] wrote:
> 
> --- 
> aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java
>  (original)
> +++ 
> aries/trunk/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java
>  Tue Jul 26 09:15:13 2016
> @@ -39,6 +39,10 @@ public class ProxyUtils
>       //In order to avoid an inconsistent stack error the version of the 
> woven byte code needs to match
>       //the level of byte codes in the original class
>       switch(JAVA_CLASS_VERSION) {
> +                     case Opcodes.V1_9:
> +                             LOGGER.debug("Weaving to Java 9");
> +                             weavingJavaVersion = Opcodes.V1_9;
> +                             break;
>               case Opcodes.V1_8:
>                       LOGGER.debug("Weaving to Java 8");
>                       weavingJavaVersion = Opcodes.V1_8;

-- 
Daniel Kulp
[email protected] <mailto:[email protected]> - http://dankulp.com/blog 
<http://dankulp.com/blog>
Talend Community Coder - http://coders.talend.com <http://coders.talend.com/>

Reply via email to