-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8315452: Erroneous AST missing modifiers for partial input #15517
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 jlahoda! A progress list of the required criteria for merging this PR into |
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 sensible
@lahodaj 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 44 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
/backport jdk21u |
Going to push as commit 84425a6.
Your commit was automatically rebased without conflicts. |
@lahodaj Could not automatically backport
Please fetch the appropriate branch/commit and manually resolve these conflicts by using the following commands in your personal fork of openjdk/jdk21u. Note: these commands are just some suggestions and you can use other equivalent commands you know.
Once you have resolved the conflicts as explained above continue with creating a pull request towards the openjdk/jdk21u with the title |
Consider code like:
Before JDK-8305671, this was producing an AST which included the package clause + an ErroneousTree, which contained the
public
as partial modifiers.After JDK-8305671, the
public
is no longer included in the AST, and hence it is invisible for tools that operate on the AST.My proposal is to return the
public
back to the AST. Seems that the problem from JDK-8305671 can be solved by breaking out of the outter loop, instead of inner loop, as it was before JDK-8305671, without affecting non-eof situations.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15517/head:pull/15517
$ git checkout pull/15517
Update a local copy of the PR:
$ git checkout pull/15517
$ git pull https://git.openjdk.org/jdk.git pull/15517/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 15517
View PR using the GUI difftool:
$ git pr show -t 15517
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15517.diff
Webrev
Link to Webrev Comment