You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by jb...@apache.org on 2022/10/08 04:41:43 UTC

[aries] branch trunk updated: [ARIES-2086] Add JDK19 support

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

jbonofre 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 12d322043 [ARIES-2086] Add JDK19 support
12d322043 is described below

commit 12d322043e5c3c2bc7e907662ad37ff06c1a711e
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Sat Oct 8 06:41:17 2022 +0200

    [ARIES-2086] Add JDK19 support
---
 .../src/main/java/org/apache/aries/proxy/impl/ProxyUtils.java         | 4 ++++
 1 file changed, 4 insertions(+)

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 ed97831ff..5d5eecc9e 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
@@ -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.V19:
+          LOGGER.debug("Weaving to Java 19");
+          weavingJavaVersion = Opcodes.V19;
+          break;
         case Opcodes.V18:
           LOGGER.debug("Weaving to Java 18");
           weavingJavaVersion = Opcodes.V18;