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
4847239: (spec) File.createTempFile() should make it clear that it doesn't create the temporary directory #4561
Conversation
…esn't create the temporary directory
|
/csr |
@bplb has indicated that a compatibility and specification (CSR) request is needed for this pull request. |
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.
Looks good. Do we have a test case that verifies the behavior?
Surprisingly it does not look like there is a verifying test. I checked it manually but I had better add a specific test. |
Test added. |
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 for adding the test. Some nits follow.
Mailing list message from Brian Burkhalter on core-libs-dev: On Jun 24, 2021, at 3:29 AM, Lance Andersen <lancea at openjdk.java.net<mailto:lancea at openjdk.java.net>> wrote: src/java.base/share/classes/java/io/File.java line 2116: 2114: * abstract pathname is valid and denotes an existing directory, then the I might suggest reworking the 1st sentence as it is a tad long and we could probably reduce the 'then' usages. Maybe instead of "In no case..." change to "Under no circumstances ...." Good points, Lance. I updated the verbiage. Should it also indicate an IOException will be thrown if the directory does not exist? I think that this is implicit in the second sentence of the revised version. |
1 similar comment
Mailing list message from Brian Burkhalter on core-libs-dev: On Jun 24, 2021, at 3:29 AM, Lance Andersen <lancea at openjdk.java.net<mailto:lancea at openjdk.java.net>> wrote: src/java.base/share/classes/java/io/File.java line 2116: 2114: * abstract pathname is valid and denotes an existing directory, then the I might suggest reworking the 1st sentence as it is a tad long and we could probably reduce the 'then' usages. Maybe instead of "In no case..." change to "Under no circumstances ...." Good points, Lance. I updated the verbiage. Should it also indicate an IOException will be thrown if the directory does not exist? I think that this is implicit in the second sentence of the revised version. |
0cd7310
to
c8ef119
Compare
@bplb 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 53 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 68ef21d.
Your commit was automatically rebased without conflicts. |
Augment the specification of
java.io.File.createTempFile(String,String,File)
to clarify its behavior with respect to theFile
parameterdirectory
.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4561/head:pull/4561
$ git checkout pull/4561
Update a local copy of the PR:
$ git checkout pull/4561
$ git pull https://git.openjdk.java.net/jdk pull/4561/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4561
View PR using the GUI difftool:
$ git pr show -t 4561
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4561.diff