-
Notifications
You must be signed in to change notification settings - Fork 232
8341779: [REDO BACKPORT] type annotations are not visible to javac plugins across compilation boundaries (JDK-8225377) #4124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back cushon! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
|
At least one of the issues associated with this backport has a resolved CSR for a different version. As this means that this backport may also need a CSR, the |
Webrevs
|
due to changes to the internal TypeMetadata API for JDK-8303820
|
/issue add JDK-8341779 |
|
@cushon This issue is referenced in the PR title - it will now be updated. |
|
/issue add JDK-8340024 |
|
@cushon |
|
/approval JDK-8341779 request for backport. Fixes a bug in javac's implementation of TypeMirror to allow accessing type-use annotations on types loaded from class files. Risk: The feature will be disabled by default behind an -XD flag, similar to 21u (see JDK-8360406). See also discussion in CSR JDK-8346471. Testing: Tier 1 tests pass. The changes were backported to 21u and released in 21.0.8. The fix is also present in JDK 22 and newer releases. Dependencies: If approved, the following related fixes should also be backported: JDK-8337795, JDK-8340024, JDK-8337998, JDK-8354893, JDK-8360406 |
|
/approval JDK-8340024 request for backport. No-risk clean-up change for code hygiene, which also also included in JDK 21 as part of the JDK-8341779 redo, see https://git.openjdk.org/jdk21u-dev/pull/1671. |
JDK-8341779 is a redo of the backport of JDK-8323093, see also discussion in CSR JDK-8346471.
JDK-8341779 was backported to JDK 21u and released in 21.0.8, as discussed in the CSR this PR proposes integrating it into a future 17u release now that 21.0.8 has been released.
Similar to JDK-8360406 for 21u, a future backport will disable this logic for 17u by default, and optionally allow the fix to be enabled with
-XDaddTypeAnnotationsToSymbol.The patch did not apply cleanly, I resolved one merge conflict due to changes to the internal
TypeMetadataAPI for JDK-8303820.Progress
Issues
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4124/head:pull/4124$ git checkout pull/4124Update a local copy of the PR:
$ git checkout pull/4124$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4124/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4124View PR using the GUI difftool:
$ git pr show -t 4124Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4124.diff
Using Webrev
Link to Webrev Comment