The factory of DirectMethodHandleDesc does not validate the name if the refKind 
is newInvokeSpecial. Therefore we need explicit manual validation.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8388362

Changes: https://git.openjdk.org/jdk/pull/31922/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31922&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8388362
  Stats: 21 lines in 2 files changed: 14 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/31922.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31922/head:pull/31922

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

Reply via email to