File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class ProxyUtils
2929 private static Logger LOGGER = LoggerFactory .getLogger (ProxyUtils .class );
3030 public static final int JAVA_CLASS_VERSION = new BigDecimal (System .getProperty ("java.class.version" )).intValue ();
3131 private static int weavingJavaVersion = -1 ; // initialise an invalid number
32-
32+
3333 /**
3434 * Get the java version to be woven at.
3535 * @return
@@ -39,6 +39,22 @@ public static int getWeavingJavaVersion() {
3939 //In order to avoid an inconsistent stack error the version of the woven byte code needs to match
4040 //the level of byte codes in the original class
4141 switch (JAVA_CLASS_VERSION ) {
42+ case Opcodes .V25 :
43+ LOGGER .debug ("Weaving to Java 25" );
44+ weavingJavaVersion = Opcodes .V25 ;
45+ break ;
46+ case Opcodes .V24 :
47+ LOGGER .debug ("Weaving to Java 24" );
48+ weavingJavaVersion = Opcodes .V24 ;
49+ break ;
50+ case Opcodes .V23 :
51+ LOGGER .debug ("Weaving to Java 23" );
52+ weavingJavaVersion = Opcodes .V23 ;
53+ break ;
54+ case Opcodes .V22 :
55+ LOGGER .debug ("Weaving to Java 22" );
56+ weavingJavaVersion = Opcodes .V22 ;
57+ break ;
4258 case Opcodes .V21 :
4359 LOGGER .debug ("Weaving to Java 21" );
4460 weavingJavaVersion = Opcodes .V21 ;
You can’t perform that action at this time.
0 commit comments