RFR: 8297271: AccessFlag.maskToAccessFlags should be specific to class file version [v5]

Chen Liang liach at openjdk.org
Tue Apr 29 20:03:49 UTC 2025


On Tue, 29 Apr 2025 19:48:01 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Take the class file version to reject flags not yet defined, redefined, or obsoleted. The non-cffv version can return the preview flags when the current runtime is in preview.
>
> Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 11 commits:
> 
>  - Merge branch 'feature/af-location-accessors' into feature/af-cffv-parse
>  - Wording updates
>  - Merge branch 'feature/af-location-accessors' into feature/af-cffv-parse
>  - Missing since
>  - Fix javap causing strictfp tests to fail
>  - Further furnish docs
>  - Merge branch 'feature/af-location-accessors' into feature/af-cffv-parse
>  - Merge branch 'feature/af-location-accessors' into feature/af-cffv-parse
>  - Merge branch 'master' of https://github.com/openjdk/jdk into feature/af-cffv-parse
>  - Redundant method
>  - ... and 1 more: https://git.openjdk.org/jdk/compare/1a22005e...41989440

Unfortunately the cffv-aware maskToAccessFlags introduction and old maskToAccessFlags migration to reject STRICTFP are bundled together - this means javap will need an ad-hoc facility to parse instead of using these APIs. Is that the way to go?

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

PR Comment: https://git.openjdk.org/jdk/pull/24760#issuecomment-2840096776


More information about the core-libs-dev mailing list