diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java b/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java index f1eeeb960ac..18b73ecf25f 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java @@ -124,7 +124,7 @@ public class ClassFileVersion implements Comparable { /** * The class file version of Java 17. */ - public static final ClassFileVersion JAVA_V17 = new ClassFileVersion(Opcodes.V16 + 1); + public static final ClassFileVersion JAVA_V17 = new ClassFileVersion(Opcodes.V17); /** * A version locator for the executing JVM. diff --git a/byte-buddy-dep/src/test/java/net/bytebuddy/ClassFileVersionKnownVersionsTest.java b/byte-buddy-dep/src/test/java/net/bytebuddy/ClassFileVersionKnownVersionsTest.java index 8cb768bcf12..2e30bb1f162 100644 --- a/byte-buddy-dep/src/test/java/net/bytebuddy/ClassFileVersionKnownVersionsTest.java +++ b/byte-buddy-dep/src/test/java/net/bytebuddy/ClassFileVersionKnownVersionsTest.java @@ -74,7 +74,7 @@ public static Collection data() { {14, 14, Arrays.asList("1.14", "14"), Opcodes.V14, (short) 58, (short) 0, true, true, true}, {15, 15, Arrays.asList("1.15", "15"), Opcodes.V15, (short) 59, (short) 0, true, true, true}, {16, 16, Arrays.asList("1.16", "16"), Opcodes.V16, (short) 60, (short) 0, true, true, true}, - {17, 17, Arrays.asList("1.17", "17"), Opcodes.V16 + 1, (short) 61, (short) 0, true, true, true} + {17, 17, Arrays.asList("1.17", "17"), Opcodes.V17, (short) 61, (short) 0, true, true, true} }); }