-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8292159: TYPE_USE annotations on generic type arguments of record components discarded #10741
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
Conversation
|
👋 Welcome back sadayapalam! A progress list of the required criteria for merging this PR into |
|
@sadayapalam The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
|
/csr needed |
|
@vicente-romero-oracle has indicated that a compatibility and specification (CSR) request is needed for this pull request. @sadayapalam please create a CSR request for issue JDK-8292159 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
| record R(List<@Anno String> s) {} | ||
| """; | ||
|
|
||
| String[] generalOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for completeness I think that the test should be executed with and without annotation processor
I agree it is reasonable to have a CSR to note the behavioral change; thanks, |
|
For the record(sic!) , javac's implementation seems to use terminology that differs from JLS (but still may be producing fully equivalent implementation) See that JLS 8.10.1 says: The record components of a record class, if any, are specified in the header of a Javac implementation treats the declaration in the record header as a component field In doing so, it is aligning with terminology used by JDK, which treats the components of The following is from Class.java This may be just splitting hairs - but at least initially it is a bit confusing that we go from components fields to record components in javac implementation rather than vice versa. As called out before, the net effect may be that a totally equivalent implementation results. |
vicente-romero-oracle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
|
@sadayapalam This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
@sadayapalam Pushed as commit 4d9a1cd. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Handle carryover of type annotations to record components in a place which will be
reached regardless of whether there are any annotations in a SE5 annotation location.
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10741/head:pull/10741$ git checkout pull/10741Update a local copy of the PR:
$ git checkout pull/10741$ git pull https://git.openjdk.org/jdk pull/10741/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10741View PR using the GUI difftool:
$ git pr show -t 10741Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10741.diff