Commit graph

78 commits

Author SHA1 Message Date
Brian Burkhalter
6c6beba256 8317128: java/nio/file/Files/CopyAndMove.java failed with AccessDeniedException
Reviewed-by: alanb, lancea
2023-10-06 17:46:03 +00:00
Brian Burkhalter
36ac83904c 8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable
Reviewed-by: alanb
2023-09-26 15:27:44 +00:00
Brian Burkhalter
2eae13c669 8214248: (fs) Files:mismatch spec clarifications
Reviewed-by: alanb
2023-08-22 19:04:46 +00:00
Brian Burkhalter
2bdfa836ad 8262742: (fs) Add Path::resolve with varargs string
Reviewed-by: alanb
2023-07-24 19:59:17 +00:00
Pavel Rappo
5cc71f817f 8312089: Simplify and modernize equals, hashCode, and compareTo in java.nio and implementation code
Reviewed-by: alanb, vtewari
2023-07-17 22:27:48 +00:00
Nagata-Haruhito
9d64a9d220 8306431: File.listRoots method description should be re-examined
Reviewed-by: bpb, alanb
2023-06-08 07:03:29 +00:00
Brian Burkhalter
6d4782bc73 8307976: (fs) Files.createDirectories(dir) returns dir::toAbsolutePath instead of dir
Reviewed-by: alanb
2023-05-17 16:04:08 +00:00
Brian Burkhalter
9fa8b9a4a6 8307409: Refactor usage examples to use @snippet in the java.nio packages
Reviewed-by: alanb, rriggs
2023-05-12 15:17:22 +00:00
Jonathan Gibbons
c6bd489cc8 8305206: Add @spec tags in java.base/java.* (part 1)
Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
2023-04-04 00:09:38 +00:00
Sergey Tsypanov
25bfed3b12 8302979: (fs) Files usage of SUPPORTED_CHARSETS could be simplified
Reviewed-by: alanb, jwaters
2023-02-22 14:08:51 +00:00
Brian Burkhalter
5412439445 8298187: (fs) BsdFileAttributeViews::setTimes does not support lastAccessTime on HFS+
Reviewed-by: alanb
2022-12-15 22:47:29 +00:00
Brian Burkhalter
831b35fad3 7093322: (fs spec) Files.newBufferedWriter should be clear when coding errors are detected
Reviewed-by: alanb
2022-12-15 17:27:39 +00:00
Sergey Tsypanov
e3c6cf8eaf 8298380: Clean up redundant array length checks in JDK code base
Reviewed-by: dholmes, amenkov, serb, vtewari
2022-12-09 12:50:55 +00:00
Brian Burkhalter
10356e767a 8298303: (fs) temporarily remove Path.getExtension
Reviewed-by: smarks, alanb
2022-12-07 18:54:18 +00:00
Brian Burkhalter
50d91a31d4 8057113: (fs) Path should have a method to obtain the filename extension
Reviewed-by: rriggs, lancea, mr, alanb
2022-11-01 21:35:54 +00:00
Jaikiran Pai
169a5d48af 8294193: Files.createDirectories throws FileAlreadyExistsException for a symbolic link whose target is an existing directory
Reviewed-by: alanb
2022-09-26 05:16:31 +00:00
Brian Burkhalter
4040927d17 8290047: (fs) FileSystem.getPathMatcher does not check for ":" at last index
Reviewed-by: naoto, rriggs, alanb, lancea
2022-08-09 17:07:14 +00:00
Andrey Turbanov
6e7cd7627d 8291061: Improve thread safety of FileTime.toString and toInstant
Reviewed-by: alanb
2022-08-05 06:56:20 +00:00
Lance Andersen
d48694d0f3 8283335: Add exists and readAttributesIfExists methods to FileSystemProvider
Reviewed-by: alanb
2022-07-05 19:45:08 +00:00
Brian Burkhalter
6f9717b46b 8288836: (fs) Files.writeString spec for IOException has "specified charset" when no charset is provided
Reviewed-by: alanb, lancea, iris
2022-06-28 15:05:46 +00:00
Brian Burkhalter
5a8e1e43a4 8287889: (fs) Files.copy description of REPLACE_EXISTING is hard to read
Reviewed-by: alanb
2022-06-14 17:59:06 +00:00
Brian Burkhalter
13596cdf69 8287097: (fs) Files::copy requires an undocumented permission when copying from the default file system to a non-default file system
Reviewed-by: chegar, alanb
2022-06-02 17:36:25 +00:00
Sergey Tsypanov
168b226b0f 8282662: Use List.of() factory method to reduce memory consumption
Reviewed-by: redestad, rriggs
2022-06-01 13:31:36 +00:00
Joe Darcy
bba456a8db 8285676: Add missing @param tags for type parameters on classes and interfaces
Reviewed-by: wetmore, smarks, dfuchs, prr, alanb, mchung
2022-04-28 18:00:34 +00:00
Brian Burkhalter
fdce97df5f 8267820: (fs) Files.copy should attempt to copy POSIX attributes when target file in custom file system
Reviewed-by: lancea, alanb
2022-03-10 17:36:51 +00:00
Brian Burkhalter
ece89c6df1 8280366: (fs) Restore Files.createTempFile javadoc
Reviewed-by: alanb, lancea
2022-01-27 21:00:45 +00:00
Brian Burkhalter
fb8fdc0fbf 8279990: (fs) Awkward verbiage in description of Files.createTempFile(Path,String,String,FileAttribute)
Reviewed-by: lancea
2022-01-14 17:47:35 +00:00
Pavel Rappo
d1cad2463a 8278168: Add a few missing words to the specification of Files.mismatch
Reviewed-by: rriggs, bpb, iris, alanb
2021-12-03 09:54:23 +00:00
Brian Burkhalter
239a35aa91 8233749: Files.exists javadoc doesn't mention eating IOException
Reviewed-by: lancea, alanb
2021-10-08 16:43:16 +00:00
Pavel Rappo
97b28742b4 8274509: Remove stray * and stylistic . from doc comments
Reviewed-by: alanb, dfuchs, lancea, iris, bpb
2021-09-29 17:09:08 +00:00
Jaikiran Pai
8c122af6d8 8274314: Typo in WatchService#poll(long timeout, TimeUnit unit) javadoc
Reviewed-by: alanb, lancea
2021-09-25 12:42:03 +00:00
Pavel Rappo
5ffbe75557 8274195: Doc cleanup in java.nio.file
Reviewed-by: alanb, lancea, bpb
2021-09-23 16:18:07 +00:00
Pavel Rappo
8799856528 8274075: Fix miscellaneous typos in java.base
Reviewed-by: dfuchs, darcy, iris, lancea, bpb
2021-09-23 08:08:39 +00:00
Pavel Rappo
b4b121018d 8273616: Fix trivial doc typos in the java.base module
Reviewed-by: jrose, iris, lancea, dfuchs, rriggs
2021-09-13 17:46:13 +00:00
Jaikiran Pai
8156ff609b 8271147: java/nio/file/Path.java javadoc typo
Reviewed-by: iris
2021-07-23 04:06:59 +00:00
Patrick Concannon
438895903b 8268056: Update java.net and java.nio to use switch expressions
Reviewed-by: dfuchs, michaelm, chegar, iris, alanb
2021-06-09 10:13:25 +00:00
Weijun Wang
6765f90250 8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
2021-06-02 11:57:31 +00:00
Conor Cleary
a45733f840 8264779: Fix doclint warnings in java/nio
Reviewed-by: chegar, iris, alanb, naoto
2021-04-09 08:50:33 +00:00
Brian Burkhalter
8fa34e4043 8241619: (fs) Files.newByteChannel(path, Set.of(CREATE_NEW, READ)) does not throw a FileAlreadyExistsException when the file exists
Reviewed-by: alanb
2021-03-23 16:03:59 +00:00
Brian Burkhalter
b482733f94 8259218: (fs) Add links in from overloaded methods in java.nio.file.Files
Reviewed-by: dfuchs, alanb
2021-03-10 20:02:12 +00:00
Brian Burkhalter
7451962849 8129776: The optimized Stream returned from Files.lines should unmap the mapped byte buffer (if created) when closed
Reviewed-by: rriggs, psandoz, alanb
2021-02-08 22:18:00 +00:00
Andrey Turbanov
022bc9f0cb 8258422: Cleanup unnecessary null comparison before instanceof check in java.base
Reviewed-by: chegar, aefimov
2021-01-11 23:30:44 +00:00
Michael McMahon
6bb7e45e8e 8245194: Unix domain socket channel implementation
Reviewed-by: erikj, dfuchs, alanb, chegar
2020-10-28 17:26:26 +00:00
Brian Burkhalter
fc02d9872e 8238013: Enhance String writing
Reviewed-by: alanb, ahgross, rhalade, rriggs
2020-02-06 07:59:39 -08:00
Brian Burkhalter
447d6499f1 8242292: (fs) FileSystems.getFileSystem(URI) should throw IAE if the URI scheme is null
Reviewed-by: lancea, alanb
2020-04-13 10:16:38 -07:00
Ivan Gerasimov
53b2368d49 8241760: Typos: empty lines in javadoc, inconsistent indents, etc. (net and nio)
Reviewed-by: alanb, prappo, dfuchs
2020-03-30 13:59:16 -07:00
Pavel Rappo
17ff85d4ad 8241014: Miscellaneous typos in documentation comments
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
2020-03-20 20:54:56 +00:00
Brian Burkhalter
68c5b95b13 8231790: Provide better FileSystemProviders
Reviewed-by: alanb, skoivu, rhalade
2019-10-10 10:52:31 -07:00
Ivan Gerasimov
cd589d8469 8234147: Avoid looking up standard charsets in core libraries
Reviewed-by: alanb
2019-12-01 15:29:37 -08:00
Brian Burkhalter
2cea148cdf 8162520: (fs) FileStore should support file stores with > Long.MAX_VALUE capacity
Reviewed-by: alanb, darcy, rriggs
2019-11-01 13:16:50 -07:00