[jdk25u] RFR: 8366028: MethodType::fromMethodDescriptorString should not throw UnsupportedOperationException for invalid descriptors

Chen Liang liach at openjdk.org
Wed Aug 27 15:44:57 UTC 2025


Please review this patch that fixes a bug with `MethodType::fromMethodDescriptorString` introduced in 22. Since this bug has not affected any LTS yet, I think it would be reasonable to fix this in 25 LTS releases before this behavior becomes an accidental dependency in LTS users.

Original PR: https://github.com/openjdk/jdk/pull/26909

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

Commit messages:
 - Backport 1d53ac30f1db88df9a97b63b3ff56d26975d3a57

Changes: https://git.openjdk.org/jdk25u/pull/139/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u&pr=139&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8366028
  Stats: 32 lines in 2 files changed: 28 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk25u/pull/139.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u.git pull/139/head:pull/139

PR: https://git.openjdk.org/jdk25u/pull/139


More information about the jdk-updates-dev mailing list