RFR: 8350704: Create tests to ensure the failure behavior of core reflection APIs
Chen Liang
liach at openjdk.org
Tue Feb 25 23:55:33 UTC 2025
Core reflection's generic signature parsing system is used for many aspects, including annotations and enclosing methods, yet it is under-tested. It is better for us to set up tests to ensure that sensitive error behaviors of core reflection remain the same across implementation updates, such as #19281.
This patch also includes a JUnit converted version of https://github.com/openjdk/jdk/pull/22581#issuecomment-2521703511 test checking behavior around annotations with duplicate interfaces. Interesting that this causes failure in class, field, and methods (constructors), but not in parameters.
-------------
Commit messages:
- 8350704: Create tests to ensure the failure behavior of core reflection APIs
Changes: https://git.openjdk.org/jdk/pull/23788/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23788&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8350704
Stats: 703 lines in 7 files changed: 646 ins; 56 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23788.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23788/head:pull/23788
PR: https://git.openjdk.org/jdk/pull/23788
More information about the core-libs-dev
mailing list