RFR: 8368331: ClassFile Signature parsing fails for type parameter with no supertype [v3]

Chen Liang liach at openjdk.org
Tue Sep 23 14:02:53 UTC 2025


> Some type parameter declaration signatures in class and method generic signatures, such as `<T:R:>`, are valid per JVMS but are not accepted by either the ClassFile or the legacy core reflection parser. (Javac doesn't generate these because it always generates an Object upper bound) They can be constructed by the ClassFile API models. So it makes sense to support their parsing as supported by JVMS and our API model.

Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains eight commits:

 - Merge branch 'master' of https://github.com/openjdk/jdk into fix/cf-typevar-parse
 - 8368331: ClassFile Signature parsing fails for type parameter with no supertype
 - More fixes
 - Fix bad docs and add more to clarify class type sig
 - Merge branch 'master' of https://github.com/openjdk/jdk into fix/cf-classtypesig-factory-classdesc
 - Fix links
 - More bugs
 - 8368050: Validation missing in ClassFile signature factories

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

Changes: https://git.openjdk.org/jdk/pull/27439/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27439&range=02
  Stats: 92 lines in 2 files changed: 89 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27439.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27439/head:pull/27439

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


More information about the core-libs-dev mailing list