JDK-8296287: Improve documentation for Types.directSupertypes()#10977
JDK-8296287: Improve documentation for Types.directSupertypes()#10977jddarcy wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back darcy! A progress list of the required criteria for merging this PR into |
Webrevs
|
| RoundEnvironment roundEnv) { | ||
| if (!roundEnv.processingOver()) { | ||
| TypeMirror objectType = requireNonNull(eltUtils.getTypeElement("java.lang.Object")).asType(); | ||
| var ojectSupertypes = typeUtils.directSupertypes(objectType); |
There was a problem hiding this comment.
Nit: objectSupertypes -> objectSupertypes.
There was a problem hiding this comment.
Thanks; will fix before pushing.
| /* | ||
| * @test | ||
| * @bug 8296287 | ||
| * @summary Test Types methods on module and package TypeMirrors |
There was a problem hiding this comment.
I don't think I understand the summary. Specifically, how are modules and packages pertinent to this test? (I'm not an expert in compiler area.)
There was a problem hiding this comment.
Ah, that was a left over from copying the other test in that directory; will correct to an accurate summary.
| public boolean process(Set<? extends TypeElement> annotations, | ||
| RoundEnvironment roundEnv) { | ||
| if (!roundEnv.processingOver()) { | ||
| TypeMirror objectType = requireNonNull(eltUtils.getTypeElement("java.lang.Object")).asType(); |
There was a problem hiding this comment.
Redundant whitespace before =
|
@jddarcy 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 11 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 |
|
Going to push as commit 97c5a64.
Your commit was automatically rebased without conflicts. |
Please review the PR and CSR (https://bugs.openjdk.org/browse/JDK-8296354) to add text to explicitly specify the behavior of Types.directSupertypes on java.lang.Object.
(This text could be added as informative text as it is implied by the existing specification, but I think it was reasonable to add the text as a normative statement instead.)
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10977/head:pull/10977$ git checkout pull/10977Update a local copy of the PR:
$ git checkout pull/10977$ git pull https://git.openjdk.org/jdk pull/10977/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10977View PR using the GUI difftool:
$ git pr show -t 10977Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10977.diff