Skip to content

Commit dd307e5

Browse files
rovargaalien11689
authored andcommitted
ARIES-2194: Add constants for Java 22..25
Signed-off-by: Robert Varga <[email protected]>
1 parent 3572d56 commit dd307e5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)