Skip to content

Commit d794de0

Browse files
fix: bad bytecode generation on throw null
1 parent b170133 commit d794de0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)