Classfile API didn't handle transformations of class files version 50 and below correctly.
Proposed fix have two parts: 1. Inflation of branch targets does not depend on StackMapTable attribute presence for class file version 50 and below. Alternative fallback implementation is provided. 2. StackMapTable attribute is not generated for class file versions below 50. StackMapsTest is also extended to test this patch. Please review. Thanks, Adam ------------- Commit messages: - added bug test annotation - 8305990: Stripping debug info of ASM 9.5 fails Changes: https://git.openjdk.org/jdk/pull/13478/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13478&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8305990 Stats: 42 lines in 5 files changed: 39 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/13478.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13478/head:pull/13478 PR: https://git.openjdk.org/jdk/pull/13478