-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8266631: StandardJavaFileManager: getJavaFileObjects() impl violates the spec #4360
Conversation
/issue add JDK-8266631,JDK-8266596,JDK-8266591,JDK-8266590 |
👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into |
@lahodaj This issue is referenced in the PR title - it will now be updated. Adding additional issue to issue list: Adding additional issue to issue list: Adding additional issue to issue list: |
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.
the patch and the CSR look good to me. I would just inline the spec changes in the specification section of the CSR
@lahodaj This change is no longer ready for integration - check the PR body for details. |
/csr |
@jonathan-gibbons this pull request will not be integrated until the CSR request JDK-8268260 for issue JDK-8266631 has been approved. |
* The default implementation converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles getJavaObjectsFromFiles}. | ||
* The default implementation lazily converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromPaths(Collection) getJavaFileObjectsFromPaths}. | ||
* IllegalArgumentException will be thrown if any of the paths |
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 default implementation converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles getJavaObjectsFromFiles}. | ||
* The default implementation lazily converts each path to a file and calls | ||
* {@link #getJavaFileObjectsFromFiles(Iterable) getJavaFileObjectsFromFiles}. | ||
* IllegalArgumentException will be thrown if any of the paths |
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.
* IllegalArgumentException will be thrown if any of the paths | ||
* cannot be converted to a file. | ||
* cannot be converted to a file at the point the conversion happens. | ||
* | ||
* @param paths a list of paths | ||
* @return a list of file objects |
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.
In the following @throws, remove the trailing "."
@@ -267,7 +267,8 @@ | |||
* @throws IllegalArgumentException if the array of files includes | |||
* a directory |
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 adding or if this file manager does not support any of the * given paths
in line with similar methods
* elements and the given element is used by | ||
* {@linkplain #getJavaFileObjectsFromPaths(Collection)}. |
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 new condition should be in an @implSpec
.
The package declaration contains a general specification for nulls and NPE, so it's not clear that we need the @throws NPE
at all, but it's not wrong to leave it as was.
Transferred to JDK 17 as: Thanks for the comments! |
This improves javadoc/specification of several StandardJavaFileManager methods, as requested in these bugs:
https://bugs.openjdk.java.net/browse/JDK-8266631
https://bugs.openjdk.java.net/browse/JDK-8266596
https://bugs.openjdk.java.net/browse/JDK-8266591
https://bugs.openjdk.java.net/browse/JDK-8266590
The CSR is here:
https://bugs.openjdk.java.net/browse/JDK-8268260
Progress
Integration blocker
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4360/head:pull/4360
$ git checkout pull/4360
Update a local copy of the PR:
$ git checkout pull/4360
$ git pull https://git.openjdk.java.net/jdk pull/4360/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4360
View PR using the GUI difftool:
$ git pr show -t 4360
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4360.diff