-
Notifications
You must be signed in to change notification settings - Fork 6.2k
JDK-8157682: @inheritDoc doesn't work with @exception #2818
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-8157682: @inheritDoc doesn't work with @exception #2818
Conversation
|
👋 Welcome back jjg! A progress list of the required criteria for merging this PR into |
|
@jonathan-gibbons 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
|
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.
This commit changes the order of block tags in the output. The fact that no tests failed when I ran them surprised me. I think we should both fix that order and introduce a test for it.
| Map<String, Taglet> taglets = new TreeMap<String, Taglet>(); | ||
| taglets.putAll(allTaglets); |
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.
Consider squashing these two lines into one:
Map<String, Taglet> taglets = new TreeMap<>(allTaglets);
and deleting this now unused import:
import java.util.Comparator;
| blockTagletsByLocation.get(l).add(t); | ||
| List<Taglet> list = blockTagletsByLocation.get(l); | ||
| if (!list.contains(t)) { | ||
| list.add(t); | ||
| } |
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 suppose the purpose of that is to filter out a now duplicated ThrowsTaglet. We should separately consider using a more appropriate data structure there.
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.
yeah, but ... this is just one-off init ... it's the "standard" problem of list vs. sets, and list-y sets vs. set-y lists.
|
/contributor add Yano, Masanori yano-masanori@jp.fujitsu.com |
|
@jonathan-gibbons |
Can you give more details? Did you observe that anywhere, or are you inferring that from the code somewhere? |
|
/contributor add jonathan-gibbons |
|
@jonathan-gibbons Could not parse
|
I saw that difference in the produced documentation for JDK. I suggest you build documentation for "before" and "after", each time with the |
|
/contributor add @jonathan-gibbons |
|
@jonathan-gibbons |
Wow. Good catch! That was unexpected! Will investigate! |
pavelrappo
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.
I can see that you propose to add a test for the output order of block tags separately: https://git.openjdk.java.net/jdk/pull/2835 (JDK-8263043).
Looks good.
|
@jonathan-gibbons 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 31 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 |
|
@jonathan-gibbons Since your change was applied there have been 34 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 9755782. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review a fix to improve the handling of the legacy
@exceptiontag.A patch for this was previously submitted. However, that patch introduced an explicit new
ExceptionTagletclass, whereas the fix here just reuses the existingThrowsTaglet, registering it under an additional name.The test in the original patch is enhanced to check all 4 combinations of (throws, exception) in the base class and (throws, exception) in the subclass.
Progress
Issue
Reviewers
Contributors
<yano-masanori@jp.fujitsu.com><jjg@openjdk.org>Download
$ git fetch https://git.openjdk.java.net/jdk pull/2818/head:pull/2818$ git checkout pull/2818