ClassFile API use an alternate labels inflation method for class versions < 50 (where StackMapTable attribute is optional). The alternate method missed label inflation of lookup switch and table switch instructions. This patch fixes the label inflation method for for class versions < 50 and adds relevant test.
Please review. Thanks, Adam ------------- Commit messages: - 8339368: Switch targets are not inflated in CodeModel if no StackMap Changes: https://git.openjdk.org/jdk/pull/20810/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20810&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8339368 Stats: 61 lines in 2 files changed: 45 ins; 12 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/20810.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20810/head:pull/20810 PR: https://git.openjdk.org/jdk/pull/20810