Skip to content

Commit

Permalink
Merge pull request #243 from rovarga/aries2127
Browse files Browse the repository at this point in the history
ARIES-2127: Add constants for Java 20/21
  • Loading branch information
cschneider authored Oct 5, 2023
2 parents 1c66f6c + fa62254 commit a5064f1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ public static int getWeavingJavaVersion() {
//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.V21:
LOGGER.debug("Weaving to Java 21");
weavingJavaVersion = Opcodes.V21;
break;
case Opcodes.V20:
LOGGER.debug("Weaving to Java 20");
weavingJavaVersion = Opcodes.V20;
break;
case Opcodes.V19:
LOGGER.debug("Weaving to Java 19");
weavingJavaVersion = Opcodes.V19;
Expand Down

0 comments on commit a5064f1

Please sign in to comment.