-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8332072: Convert package.html files in java.naming
to package-info.java
#19529
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 nbenalla! A progress list of the required criteria for merging this PR into |
@nizarbenalla 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 93 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@AlekseiEfimov) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
java.naming
to package-info.javajava.naming
to package-info.java
@nizarbenalla 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
|
I recommend having the new package-info.java files follow the now-current javadoc conventions including:
|
Sure, I will do it for this one. |
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 have converted this to use some of the now-current javadoc convetions.
* // Perform update | ||
* Context ctx = ectx.createSubsubcontext("cn=newobj"); | ||
* | ||
* // Get response controls | ||
* Control[] respCtls = ectx.getResponseControls(); | ||
* if (respCtls != null) { | ||
* // Find the one we want | ||
* for (int i = 0; i < respCtls; i++) { | ||
* for (int i = 0; i < respCtls.length; i++) { |
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 is the only change that isn't a direct 1:1 conversion, I hope this ok.
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 seems reasonable for what is an obvious but minor bug
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.
The change looks correct to me too.
/solves JDK-8335213 |
@nizarbenalla |
* Extends the {@code javax.naming.ldap} package to provide the classes | ||
* and interfaces for the Service Provider Interface (SPI) for LDAP |
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.
The javax.naming.ldap.spi
package only contains SPI classes that can customize DNS lookups when performing LDAP operations. It was added by JDK-8160768/CSR.
Since the package only contains classes related to this SPI maybe we could change the wording to something like this:
* Extends the {@code javax.naming.ldap} package to provide the classes | |
* and interfaces for the Service Provider Interface (SPI) for LDAP | |
* Provides the Service Provider Interface for DNS lookups when | |
* performing LDAP operations. |
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, Fixed in 0104e4a
* // Perform update | ||
* Context ctx = ectx.createSubsubcontext("cn=newobj"); | ||
* | ||
* // Get response controls | ||
* Control[] respCtls = ectx.getResponseControls(); | ||
* if (respCtls != null) { | ||
* // Find the one we want | ||
* for (int i = 0; i < respCtls; i++) { | ||
* for (int i = 0; i < respCtls.length; i++) { |
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.
The change looks correct to me too.
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.
Package descriptions generated from new package-info.java
files look good and have the same content as the ones generated from package.html
files. A minor issue - two leftover tags need to be removed:
* <p> | ||
* An application, for example, can register its interest in changes to | ||
* objects in a context as follows: | ||
* <blockquote> |
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.
The leftover <blockquote>
can be removed:
* <blockquote> |
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.
Fixed both in 657ef5c, thank you.
* } | ||
* } | ||
* } | ||
* </blockquote> |
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.
The leftover </blockquote>
can be removed:
* </blockquote> |
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.
The latest changes look good to me
Thank you Aleksei for your review! /integrate |
@nizarbenalla |
/sponsor |
Going to push as commit 6a47279.
Your commit was automatically rebased without conflicts. |
@AlekseiEfimov @nizarbenalla Pushed as commit 6a47279. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Can I please get a review for this small change? The motivation is that javac does not recognize
package.html
files.The conversion was simple, I used a script to rename the files, append "*" on the left and remove some HTML tags like
<body>
and<html>
. I did the conversion in place, renaming them in git but with the big amount of changegit
thinks it's a new file.I also added a new
package-info.java
file tojavax.naming.ldap.spi
. I hope that's fine.Progress
Issues
java.naming
to package-info.java (Sub-task - P4)Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19529/head:pull/19529
$ git checkout pull/19529
Update a local copy of the PR:
$ git checkout pull/19529
$ git pull https://git.openjdk.org/jdk.git pull/19529/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19529
View PR using the GUI difftool:
$ git pr show -t 19529
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19529.diff
Webrev
Link to Webrev Comment