This is an automated email from the ASF dual-hosted git repository.

alien11689 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/aries.git


The following commit(s) were added to refs/heads/trunk by this push:
     new dd307e5da ARIES-2194: Add constants for Java 22..25
dd307e5da is described below

commit dd307e5daa1736443d813c6ba24258925399fb0e
Author: Robert Varga <[email protected]>
AuthorDate: Wed Oct 1 16:53:36 2025 +0200

    ARIES-2194: Add constants for Java 22..25
    
    Signed-off-by: Robert Varga <[email protected]>
---
 .../java/org/apache/aries/proxy/impl/ProxyUtils.java   | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git 
a/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java 
b/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java
index e46be59ee..cf0d720e4 100644
--- a/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java
+++ b/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java
@@ -29,7 +29,7 @@ public class ProxyUtils
   private static Logger LOGGER = LoggerFactory.getLogger(ProxyUtils.class);
   public static final int JAVA_CLASS_VERSION = new 
BigDecimal(System.getProperty("java.class.version")).intValue();
   private static int weavingJavaVersion = -1; // initialise an invalid number
-  
+
   /**
    * Get the java version to be woven at.
    * @return
@@ -39,6 +39,22 @@ 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.V25:
+          LOGGER.debug("Weaving to Java 25");
+          weavingJavaVersion = Opcodes.V25;
+          break;
+        case Opcodes.V24:
+          LOGGER.debug("Weaving to Java 24");
+          weavingJavaVersion = Opcodes.V24;
+          break;
+        case Opcodes.V23:
+          LOGGER.debug("Weaving to Java 23");
+          weavingJavaVersion = Opcodes.V23;
+          break;
+        case Opcodes.V22:
+          LOGGER.debug("Weaving to Java 22");
+          weavingJavaVersion = Opcodes.V22;
+          break;
         case Opcodes.V21:
           LOGGER.debug("Weaving to Java 21");
           weavingJavaVersion = Opcodes.V21;

Reply via email to