RFR: 8333377: Migrate Generic Signature parsing to ClassFile API

Joe Darcy darcy at openjdk.org
Fri May 31 22:45:02 UTC 2024


On Fri, 17 May 2024 12:01:23 GMT, Chen Liang <liach at openjdk.org> wrote:

> Core reflection's generic signature parsing uses an ancient library with outdated visitor pattern on a tree model and contains unnecessary boilerplates. This is a duplication of ClassFile API's signature model. We should just move to ClassFile API, which is more throughoutly tested as well.
> 
> To ensure compatibility, new tests are added to ensure consistent behavior when encountering malformed signatures or signatures with missing types. The reflective objects have been preserved and the only change is that lazy expansion now happens from CF objects, to reduce compatibility risks.

I think I'll need to be one of the reviews on this, but don't anticipate being able to review it before JDK 23 rampdown. Therefore, I think this would be appropriate to be targeted to JDK 24.

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

PR Comment: https://git.openjdk.org/jdk/pull/19281#issuecomment-2143066139


More information about the core-libs-dev mailing list