RFR: 8368050: Validation missing in ClassFile signature factories

Chen Liang liach at openjdk.org
Fri Sep 19 00:09:14 UTC 2025


The Signature modeling in the ClassFile API is missing some validations required by JVMS, notably identifier character restrictions and void type restrictions. In addition, the model currently uses `ClassDesc` to indicate a simple name for an inner class signature, which is incorrect, and this patch proposes to deprecate that API for removal.

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

Commit messages:
 - 8368050: Validation missing in ClassFile signature factories

Changes: https://git.openjdk.org/jdk/pull/27380/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27380&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8368050
  Stats: 205 lines in 5 files changed: 178 ins; 4 del; 23 mod
  Patch: https://git.openjdk.org/jdk/pull/27380.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27380/head:pull/27380

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


More information about the core-libs-dev mailing list