From c0616ca3d745f6f93c7efc085285066b50a56e83 Mon Sep 17 00:00:00 2001 From: Alexey Volkov Date: Mon, 21 Aug 2023 16:01:47 +0300 Subject: [PATCH] Method node builder issue with instanceOf #152 (#153) --- .../src/main/kotlin/org/jacodb/impl/cfg/MethodNodeBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jacodb-core/src/main/kotlin/org/jacodb/impl/cfg/MethodNodeBuilder.kt b/jacodb-core/src/main/kotlin/org/jacodb/impl/cfg/MethodNodeBuilder.kt index 24db2ebfe..bb6d8f925 100644 --- a/jacodb-core/src/main/kotlin/org/jacodb/impl/cfg/MethodNodeBuilder.kt +++ b/jacodb-core/src/main/kotlin/org/jacodb/impl/cfg/MethodNodeBuilder.kt @@ -539,7 +539,7 @@ class MethodNodeBuilder( override fun visitJcRawInstanceOfExpr(expr: JcRawInstanceOfExpr) { expr.operand.accept(this) - currentInsnList.add(TypeInsnNode(Opcodes.INSTANCEOF, expr.typeName.internalDesc)) + currentInsnList.add(TypeInsnNode(Opcodes.INSTANCEOF, expr.targetType.internalDesc)) }