Skip to content

Commit f2818d6

Browse files
fix: bad bytecode generation on throw null (#356)
1 parent b170133 commit f2818d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jacodb-core/src/main/kotlin/org/jacodb/impl/cfg/MethodNodeBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class MethodNodeBuilder(
267267
}
268268

269269
override fun visitJcRawThrowInst(inst: JcRawThrowInst) {
270-
currentInsnList.add(loadValue(inst.throwable))
270+
inst.throwable.accept(this)
271271
currentInsnList.add(InsnNode(Opcodes.ATHROW))
272272
updateStackInfo(-stackSize)
273273
}

0 commit comments

Comments
 (0)