From adam.sotona at oracle.com Mon Sep 2 08:43:59 2024 From: adam.sotona at oracle.com (Adam Sotona) Date: Mon, 2 Sep 2024 08:43:59 +0000 Subject: Switch targets are not inflated in CodeModel if no StackMap. In-Reply-To: <3b879ddf.278d8.191a74c728c.Webtop.250@btinternet.com> References: <3b879ddf.278d8.191a74c728c.Webtop.250@btinternet.com> Message-ID: Yes, this is a bug in labels inflation for older class files versions. I?ve filled a bug https://bugs.openjdk.org/browse/JDK-8339368 based on your test case and started work on a fix. Thank you for discovering it! From: classfile-api-dev on behalf of david32768 at btinternet.com Date: Saturday, 31 August 2024 at 9:18 To: classfile-api-dev at openjdk.org Subject: Switch targets are not inflated in CodeModel if no StackMap. Method jdk/internal/CodeImpl.inflateJumpTargets should also inflate switch instructions. Perhaps BranchInstruction, JsrInstruction, TableSwitchInstruction, LookupSwitchInstruction should implement an interface with method List