Skip to content

Commit cb1e8d4

Browse files
committed
Update ASM version.
1 parent fe56d6d commit cb1e8d4

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ public class ClassFileVersion implements Comparable<ClassFileVersion>, Serializa
159159
*/
160160
public static final ClassFileVersion JAVA_V23 = new ClassFileVersion(Opcodes.V23);
161161

162+
/**
163+
* The class file version of Java 24.
164+
*/
165+
public static final ClassFileVersion JAVA_V24 = new ClassFileVersion(Opcodes.V24);
166+
162167
/**
163168
* An array of class file versions in their sorting order.
164169
*/
@@ -184,7 +189,8 @@ public class ClassFileVersion implements Comparable<ClassFileVersion>, Serializa
184189
ClassFileVersion.JAVA_V20,
185190
ClassFileVersion.JAVA_V21,
186191
ClassFileVersion.JAVA_V22,
187-
ClassFileVersion.JAVA_V23};
192+
ClassFileVersion.JAVA_V23,
193+
ClassFileVersion.JAVA_V24};
188194

189195
/**
190196
* A version locator for the executing JVM.
@@ -278,7 +284,7 @@ public static ClassFileVersion ofJavaVersion(int javaVersion) {
278284
* @return The latest officially supported Java version.
279285
*/
280286
public static ClassFileVersion latest() {
281-
return ClassFileVersion.JAVA_V23;
287+
return ClassFileVersion.JAVA_V24;
282288
}
283289

284290
/**
@@ -297,7 +303,7 @@ public static ClassFileVersion ofThisVm() {
297303
* by parsing the {@code java.version} property which is provided by {@link java.lang.System#getProperty(String)}. If the system
298304
* property is not available, the {@code fallback} version is returned.
299305
*
300-
* @param fallback The version to fallback to if locating a class file version is not possible.
306+
* @param fallback The version to fall back to if locating a class file version is not possible.
301307
* @return The currently running Java process's class file version or the fallback if locating this version is impossible.
302308
*/
303309
@SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Exception should not be rethrown but trigger a fallback.")

byte-buddy-dep/src/test/java/net/bytebuddy/ClassFileVersionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public static Collection<Object[]> data() {
8080
{20, 20, Collections.singletonList("20"), Opcodes.V20, (short) 64, (short) 0, true, true, true},
8181
{21, 21, Collections.singletonList("21"), Opcodes.V21, (short) 65, (short) 0, true, true, true},
8282
{22, 22, Collections.singletonList("22"), Opcodes.V22, (short) 66, (short) 0, true, true, true},
83-
{23, 23, Collections.singletonList("23"), Opcodes.V23, (short) 67, (short) 0, true, true, true}
83+
{23, 23, Collections.singletonList("23"), Opcodes.V23, (short) 67, (short) 0, true, true, true},
84+
{24, 24, Collections.singletonList("24"), Opcodes.V24, (short) 68, (short) 0, true, true, true}
8485
});
8586
}
8687

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<bytecode.test.version>1.6</bytecode.test.version>
6969
<pitest.target>net.bytebuddy</pitest.target>
7070
<nexus.url>https://s01.oss.sonatype.org</nexus.url>
71-
<version.asm>9.7</version.asm>
71+
<version.asm>9.7.1</version.asm>
7272
<version.jna>5.12.1</version.jna>
7373
<version.junit>4.13.2</version.junit>
7474
<version.mockito>2.28.2</version.mockito>

0 commit comments

Comments
 (0)