Skip to content

Commit 9b4535f

Browse files
committed
Fixed parameter names not being visited (J8)
1 parent 0bd5298 commit 9b4535f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ buildscript {
1818
}
1919

2020
group 'com.github.jonathanxd'
21-
version '3.1.0'
21+
version '3.1.1'
2222

2323
apply from: project(":CodeAPI").file("gradle/common.gradle")
2424

src/main/kotlin/com/github/jonathanxd/codeapi/bytecode/gen/visitor/MethodDeclarationVisitor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ object MethodDeclarationVisitor : VoidVisitor<MethodDeclaration, BytecodeClass,
119119
for (i in parameters.indices) {
120120
val codeParameter = parameters[i]
121121

122+
mv.visitParameter(codeParameter.name, 0)
122123
visitorGenerator.generateTo(Annotable::class.java, codeParameter, extraData, null, ParameterVisitor(mvData, i))
123124
}
124125

0 commit comments

Comments
 (0)