Skip to content

Commit

Permalink
set ASM API version
Browse files Browse the repository at this point in the history
  • Loading branch information
Anamorphosee committed Dec 7, 2023
1 parent 39d6ef0 commit 1000c85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private val METHOD_DESC =
")L$OBJECT_INTERNAL_CLASS_NAME;"

fun buildStacktraceMethodNode(methodName: String, lineNumbers: Set<Int>, makePrivate: Boolean): MethodNode {
val result = MethodNode().apply {
val result = MethodNode(/* latest api = */Opcodes.ASM9).apply {
access = if (makePrivate) Opcodes.ACC_PRIVATE else Opcodes.ACC_PUBLIC
access = access or Opcodes.ACC_STATIC or Opcodes.ACC_FINAL or Opcodes.ACC_SYNTHETIC
name = methodName
Expand Down

0 comments on commit 1000c85

Please sign in to comment.