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
JDK-8272945: Use snippets in java.compiler documentation #6686
JDK-8272945: Use snippets in java.compiler documentation #6686
Conversation
|
@jonathan-gibbons The following labels 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 lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
src/java.compiler/share/classes/javax/tools/snippet-files/JavaSourceFromString.java
Outdated
Show resolved
Hide resolved
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.
Build changes look ok.
@jonathan-gibbons 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 165 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.
|
/integrate |
Going to push as commit fb11d8f.
Your commit was automatically rebased without conflicts. |
@jonathan-gibbons Pushed as commit fb11d8f. |
Please review a patch to use snippets in the
java.compiler
documentation, instead of a mix of raw HTML and/or{@code ...}
. The change is just about the presentation of the code fragments; there are no changes to the normative specifications for the module.One of the examples went to extraordinary lengths to include the character sequence
*/
within the example. That example has been replaced by an external snippet in a separate source file, which does not have any restriction on the use of*/
. However, it does require that the file be excluded from standard compilation, and that is done by settingEXCLUDES
, once for the "interim" compiler, and once again for the "product" compiler. Going forward, a better solution might be to modify theSetupJavaCompilation
macro to ignore all directories whose name is not a valid Java identifier (or, if easier, contains a-
, such asdoc-files
orsnippet-files
.)Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6686/head:pull/6686
$ git checkout pull/6686
Update a local copy of the PR:
$ git checkout pull/6686
$ git pull https://git.openjdk.java.net/jdk pull/6686/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6686
View PR using the GUI difftool:
$ git pr show -t 6686
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6686.diff