Make UnknownAttribute and CustomAttribute delivered in code traversal, and make sure stack maps update the label references after a code transform when it is reused. Other code-bound attributes are not updated as they cannot be supplied to a CodeBuilder.
Tested the 2 cases in the new AttributesInCodeTest fails on earlier JDKs. Testing: JDK tier 1-3 ongoing ------------- Commit messages: - Fix exhaustive switch - Merge branch 'master' of https://github.com/openjdk/jdk into fix/code-traversal - 8347472: Correct Attribute traversal and writing for Code attributes Changes: https://git.openjdk.org/jdk/pull/23521/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23521&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8347472 Stats: 218 lines in 10 files changed: 198 ins; 6 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/23521.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23521/head:pull/23521 PR: https://git.openjdk.org/jdk/pull/23521