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

Adam Sotona asotona at openjdk.org
Tue Sep 23 14:37:15 UTC 2025


On Tue, 23 Sep 2025 14:02:53 GMT, Chen Liang <liach at openjdk.org> wrote:

>> 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

Looks good to me.

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

Marked as reviewed by asotona (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27439#pullrequestreview-3258321878


More information about the core-libs-dev mailing list