Skip to content

Commit 8721eba

Browse files
committed
Updated ASM to v9.9 to support Java 25
1 parent da94341 commit 8721eba

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

src/main/java/rife/asm/ClassReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public ClassReader(
195195
this.b = classFileBuffer;
196196
// Check the class' major_version. This field is after the magic and minor_version fields, which
197197
// use 4 and 2 bytes respectively.
198-
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V24) {
198+
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V26) {
199199
throw new IllegalArgumentException(
200200
"Unsupported class file major version " + readShort(classFileOffset + 6));
201201
}

src/main/java/rife/asm/MethodVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public void visitTableSwitchInsn(
596596
* Visits a LOOKUPSWITCH instruction.
597597
*
598598
* @param dflt beginning of the default handler block.
599-
* @param keys the values of the keys.
599+
* @param keys the values of the keys. Keys must be sorted in increasing order.
600600
* @param labels beginnings of the handler blocks. {@code labels[i]} is the beginning of the
601601
* handler block for the {@code keys[i]} key.
602602
*/

src/main/java/rife/asm/ModuleVisitor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public ModuleVisitor getDelegate() {
9393
}
9494

9595
/**
96-
* Visit the main class of the current module.
96+
* Visits the main class of the current module.
9797
*
9898
* @param mainClass the internal name of the main class of the current module (see {@link
9999
* Type#getInternalName()}).
@@ -105,7 +105,7 @@ public void visitMainClass(final String mainClass) {
105105
}
106106

107107
/**
108-
* Visit a package of the current module.
108+
* Visits a package of the current module.
109109
*
110110
* @param packaze the internal name of a package (see {@link Type#getInternalName()}).
111111
*/
@@ -130,7 +130,7 @@ public void visitRequire(final String module, final int access, final String ver
130130
}
131131

132132
/**
133-
* Visit an exported package of the current module.
133+
* Visits an exported package of the current module.
134134
*
135135
* @param packaze the internal name of the exported package (see {@link Type#getInternalName()}).
136136
* @param access the access flag of the exported package, valid values are among {@code
@@ -145,7 +145,7 @@ public void visitExport(final String packaze, final int access, final String...
145145
}
146146

147147
/**
148-
* Visit an open package of the current module.
148+
* Visits an open package of the current module.
149149
*
150150
* @param packaze the internal name of the opened package (see {@link Type#getInternalName()}).
151151
* @param access the access flag of the opened package, valid values are among {@code
@@ -160,7 +160,7 @@ public void visitOpen(final String packaze, final int access, final String... mo
160160
}
161161

162162
/**
163-
* Visit a service used by the current module. The name must be the internal name of an interface
163+
* Visits a service used by the current module. The name must be the internal name of an interface
164164
* or a class.
165165
*
166166
* @param service the internal name of the service (see {@link Type#getInternalName()}).
@@ -172,7 +172,7 @@ public void visitUse(final String service) {
172172
}
173173

174174
/**
175-
* Visit an implementation of a service.
175+
* Visits an implementation of a service.
176176
*
177177
* @param service the internal name of the service (see {@link Type#getInternalName()}).
178178
* @param providers the internal names (see {@link Type#getInternalName()}) of the implementations

src/main/java/rife/asm/Opcodes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ public interface Opcodes {
290290
int V22 = 0 << 16 | 66;
291291
int V23 = 0 << 16 | 67;
292292
int V24 = 0 << 16 | 68;
293+
int V25 = 0 << 16 | 69;
294+
int V26 = 0 << 16 | 70;
293295

294296
/**
295297
* Version flag indicating that the class is using 'preview' features.

src/main/java/rife/asm/SymbolTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ private static final class LabelEntry {
14731473

14741474
/**
14751475
* Another entry (and so on recursively) having the same hash code (modulo the size of {@link
1476-
* SymbolTable#labelEntries}}) as this one.
1476+
* SymbolTable#labelEntries}) as this one.
14771477
*/
14781478
LabelEntry next;
14791479

0 commit comments

Comments
 (0)