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
8267832: SimpleVisitors and Scanners in jdk.compiler should use @implSpec #4223
Conversation
…changing total patterns to default.
…ckages used by jdk.compiler again, as we now (again) have a preview feature in javac.
|
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.
I wish we had a better class-level (Doc)TreeScanner doc comment. That would allow to avoid most of the repetition in method-level comments, the vast majority of which are there only to say that the children are scanned in left to right order.
@@ -35,6 +35,7 @@ | |||
* Inside your method, call super.visitXYZ to visit descendant | |||
* nodes. | |||
* | |||
* @implSpec |
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.
- Should the error-counting example in the immediately following paragraph belong to this
@implSpec
section? - Why is there no similar
@implSpec
section being added to the class-level doc comment of TreeScanner? If such a section is to be added, then should the identifier-counting example in the immediately following paragraph belong to that section?
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.
Thanks for the comment, Pavel. I've tried to do the changes in an update:
5c9f694
The dependent pull request has now been integrated, and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork: git checkout JDK-8262891
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push |
@lahodaj this pull request can not be integrated into git checkout JDK-8267832
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
@lahodaj This change now passes all automated pre-integration checks. 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 no new commits pushed to the
|
/integrate |
@lahodaj Since your change was applied there have been 6 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit e4d0454. |
As noted in:
https://bugs.openjdk.java.net/browse/JDK-8265981?focusedCommentId=14423316&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14423316
Methods in various utility visitor classes in jdk.compiler should use @implSpec to specify the implementation behavior. This patch tries to add the @implSpec tag to methods which already contain a text specifying the implementation, and adds new javadoc to the handful of methods that are missing it so far.
The CSR is started for review here:
https://bugs.openjdk.java.net/browse/JDK-8267838
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4223/head:pull/4223
$ git checkout pull/4223
Update a local copy of the PR:
$ git checkout pull/4223
$ git pull https://git.openjdk.java.net/jdk pull/4223/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4223
View PR using the GUI difftool:
$ git pr show -t 4223
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4223.diff