aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: svn commit: r1754090 - in /aries/trunk/proxy/proxy-impl: ./ src/main/java/org/apache/aries/proxy/impl/ src/main/java/org/apache/aries/proxy/impl/common/ src/main/java/org/apache/aries/proxy/impl/gen/ src/main/java/org/apache/aries/proxy/impl/interfaces...
Date Tue, 26 Jul 2016 12:53:40 GMT
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, gnodet@apache.org 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
dkulp@apache.org <mailto:dkulp@apache.org> - http://dankulp.com/blog <http://dankulp.com/blog>
Talend Community Coder - http://coders.talend.com <http://coders.talend.com/>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message