RFR: 8356894: Adjust CreateSymbols to properly handle the newly added @jdk.internal.RequiresIdentity [v2]
Jan Lahoda
jlahoda at openjdk.org
Mon May 19 22:54:09 UTC 2025
> This patch builds on top of https://github.com/openjdk/jdk/pull/24746, and adds support for `@RequiresIdentity` to `--release`.
>
> Important parts of the patch:
> - `CreateSymbols` now keeps `RuntimeInvisibleTypeAnnotationsAttribute`/`RuntimeVisibleTypeAnnotationsAttribute` annotations
> - for `ct.sym`, the `@RequiresIdentity` annotation is converted to a synthetic `@RequiresIdentity+Annotation`, as for other similar annotations.
> - for parameters, there's a new flag that marks the parameter as "requires identity". The reason is that the other synthetic annotations on symbols used by `ct.sym`/`--release` are normally not added to the model, and hence invisible in the model. Flags are usually used instead of the synthetic annotations in javac. Using this new flag allows us to keep the behavior the same for the `@RequiresIdentity+Annotation`
> - for type variables, the synthetic annotation is filtered out in the API method
Jan Lahoda has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 41 commits:
- Cleanup.
- Fixing build
- Adjustments, annotation filtering, adding more tests
- Merge remote-tracking branch 'vicente/JDK-8354556' into JDK-8354556
- Merge branch 'master' into JDK-8354556
- Update src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java
Co-authored-by: Chen Liang <liach at openjdk.org>
- additional changes from Archie
- removing dead code
- integrating code from Archie
- fixing bugs, removing dead code
- ... and 31 more: https://git.openjdk.org/jdk/compare/e7ce661a...daed20ff
-------------
Changes: https://git.openjdk.org/jdk/pull/25232/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25232&range=01
Stats: 1197 lines in 41 files changed: 1088 ins; 51 del; 58 mod
Patch: https://git.openjdk.org/jdk/pull/25232.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25232/head:pull/25232
PR: https://git.openjdk.org/jdk/pull/25232
More information about the compiler-dev
mailing list