RFR: 8376277: Migrate java/lang/reflect tests away from TestNG

Chen Liang liach at openjdk.org
Mon Jan 26 05:27:24 UTC 2026


Mostly routine conversions. Manual updates are mostly assertThrows migration, assertArrayEquals fixes, and removal of TestInstance to convert method sources to be static.

Notably, I avoided assertThrows migration in `ChainedReflection` and `IllegalArgumentsTest` because they seem to be very sensitive to low-level reflection and runtime stuff that I fear using test framework may accidentally harm.

-------------

Commit messages:
 - 8376277: Migrate java/lang/reflect tests away from TestNG

Changes: https://git.openjdk.org/jdk/pull/29405/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29405&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8376277
  Stats: 793 lines in 28 files changed: 85 ins; 287 del; 421 mod
  Patch: https://git.openjdk.org/jdk/pull/29405.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29405/head:pull/29405

PR: https://git.openjdk.org/jdk/pull/29405


More information about the core-libs-dev mailing list