These two annotations are found to be lost during the ClassFile API port of LambdaForm generation. I seem not able to reproduce the master issue in a current build but could reproduce before when the change is first made. Anyways this restoration is always a right thing, better commit it and further investigate.
Old Stable on BMH impl class static species field: https://github.com/openjdk/jdk/pull/17108/files#diff-3d6c6bed9cbcb47fe292bdb0c795ab77e56783fdbb144decc6f00857b020c092L612-L615 Incorrect way to add InjectedProfile annotation: https://github.com/openjdk/jdk/pull/17108/files#diff-3b05b61400e7766115409b3f508d839fb51e450423822252ab2e18543427c764R618 ------------- Commit messages: - 8343547: Restore accidentally removed annotations in LambdaForm from ClassFile API port Changes: https://git.openjdk.org/jdk/pull/21880/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21880&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8343547 Stats: 19 lines in 2 files changed: 16 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/21880.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21880/head:pull/21880 PR: https://git.openjdk.org/jdk/pull/21880