[lworld] Integrated: 8376430: [lworld] Remove Modifier.IDENTITY
Chen Liang
liach at openjdk.org
Wed Jan 28 01:32:31 UTC 2026
On Tue, 27 Jan 2026 05:09:10 GMT, Chen Liang <liach at openjdk.org> wrote:
> `java.lang.reflect.Modifier` represents Java language modifiers. Since a previous iteration of JEP 401, the "identity" source modifier is removed, and only "value" source modifier exists. As a result, "identity" is no longer qualified to be present in `Modifier`. We should migrate all its uses to `ClassFile.ACC_IDENTITY` or `AccessFlag.IDENTITY` (which already correctly identifies itself not as a source modifier).
>
> This also avoids the headache of `Modifier.toString` clashing over `SYNCHRONIZED` versus `IDENTITY`.
This pull request has now been integrated.
Changeset: 0f2f43b5
Author: Chen Liang <liach at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/0f2f43b5cf38c165c16549c2286bafb8ce399a09
Stats: 112 lines in 10 files changed: 13 ins; 30 del; 69 mod
8376430: [lworld] Remove Modifier.IDENTITY
Reviewed-by: vromero, darcy
-------------
PR: https://git.openjdk.org/valhalla/pull/1980
More information about the valhalla-dev
mailing list