RFR: 8306455: Wrong majorVersion for multiple attributes in Classfile API
Adam Sotona
asotona at openjdk.org
Tue May 2 11:00:14 UTC 2023
On Wed, 19 Apr 2023 14:31:36 GMT, Chen Liang <liach at openjdk.org> wrote:
> Spotted the typo for BootstrapMethods, and another review over the API exposed the typo on PermittedSubclasses.
BootstrapMethods is a good catch, however I would rather recommend to remove the `AttributeMapper::validSince` from the API completely.
Classfile API has no use of it and it does not perform any checks based on this value. Also the value itself is related to the major version only, so it does not allow to model preview features.
PermittedSubclasses attribute is a preview part of JDK 15, see: https://openjdk.org/jeps/360
Real model of attributes and features versioning would have to be more complex and linked with some form of validation.
-------------
Changes requested by asotona (Committer).
PR Review: https://git.openjdk.org/jdk/pull/13536#pullrequestreview-1408870000
More information about the core-libs-dev
mailing list