Commit Graph

112 Commits

Author SHA1 Message Date
Lance Andersen
d48694d0f3 8283335: Add exists and readAttributesIfExists methods to FileSystemProvider
Reviewed-by: alanb
2022-07-05 19:45:08 +00:00
Brian Burkhalter
e291a67e96 8289584: (fs) Print size values in java/nio/file/FileStore/Basic.java when they differ by > 1GiB
Reviewed-by: alanb
2022-07-01 19:13:49 +00:00
Naoto Sato
2728770e3d 8288589: Files.readString ignores encoding errors for UTF-16
Reviewed-by: rriggs, iris, alanb
2022-06-23 15:49:43 +00:00
Brian Burkhalter
d482d7f5b9 8286160: (fs) Files.exists returns unexpected results with C:\pagefile.sys because it's not readable
Reviewed-by: alanb
2022-06-09 16:30:53 +00:00
Naoto Sato
6fb84e2c91 8287541: Files.writeString fails to throw IOException for charset "windows-1252"
Reviewed-by: iris, bpb, alanb, jpai, lancea, aturbanov
2022-06-08 15:50: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
Brian Burkhalter
8071b2311c 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux
Reviewed-by: rriggs, jpai, vtewari
2022-06-01 15:15:53 +00:00
Lance Andersen
90750decb4 8272477: Additional cleanup of test/jdk/java/nio/file/spi/SetDefaultProvider.java
Reviewed-by: bpb
2022-03-24 18:35:13 +00:00
Andrey Turbanov
f9137cb7b7 8280896: java/nio/file/Files/probeContentType/Basic.java fails on Windows 11
Reviewed-by: jpai, bpb
2022-03-23 19:27:56 +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
Matthias Baesken
fd8cb2dae8 8278346: java/nio/file/Files/probeContentType/Basic.java fails on Linux SLES15 machine
Reviewed-by: shade
2021-12-08 14:03:56 +00:00
Brian Burkhalter
15345e3edc 8276661: (fs) UserDefinedFileAttributeView no longer works with long path (win)
Reviewed-by: alanb
2021-12-02 20:53:13 +00:00
Alex Kasko
b6876649a8 8277159: Fix java/nio/file/FileStore/Basic.java test by ignoring /run/user/* mount points
Reviewed-by: bpb, shade
2021-11-17 17:48:07 +00:00
Aleksey Shipilev
0f463a7bf7 8276845: (fs) java/nio/file/spi/SetDefaultProvider.java fails on x86_32
Reviewed-by: alanb
2021-11-10 09:50:27 +00:00
Brian Burkhalter
684edbb4c8 8273922: (fs) UserDefinedFileAttributeView doesn't handle file names that are just under the MAX_PATH limit (win)
Reviewed-by: alanb
2021-11-03 16:55:23 +00:00
Jaikiran Pai
633eab23f0 8174819: java/nio/file/WatchService/LotsOfEvents.java fails intermittently
Reviewed-by: alanb
2021-09-28 04:54:58 +00:00
Julia Boes
bb74ae87ab 8274171: java/nio/file/Files/probeContentType/Basic.java failed on "Content type" mismatches
Reviewed-by: rriggs, bpb
2021-09-24 08:08:27 +00:00
Julia Boes
65ed0a742e 8273655: content-types.properties files are missing some common types
Reviewed-by: bpb, dfuchs
2021-09-21 08:07:25 +00:00
Brian Burkhalter
dfeb4132e4 8272964: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted
Reviewed-by: dfuchs
2021-08-27 16:08:29 +00:00
Brian Burkhalter
aaedac635a 8265261: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted
Reviewed-by: dfuchs
2021-08-24 17:04:35 +00:00
Lance Andersen
717792c3b7 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path
Reviewed-by: naoto, bpb, iris, joehw
2021-08-13 16:11:04 +00:00
Sean Mullan
4fc3180f75 8266345: (fs) Custom DefaultFileSystemProvider security related loops
Co-authored-by: Brian Burkhalter <bpb@openjdk.org>
Reviewed-by: bpb, chegar
2021-07-12 14:54:38 +00:00
Weijun Wang
640a2afda3 8267184: Add -Djava.security.manager=allow to tests calling System.setSecurityManager
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: dholmes, alanb, dfuchs, mchung, mullan, prr
2021-05-24 16:55:55 +00:00
Brian Burkhalter
cc54de76ca 8264400: (fs) WindowsFileStore equality depends on how the FileStore was constructed
Reviewed-by: alanb
2021-04-09 15:41:52 +00:00
Brian Burkhalter
3991b329b1 8264539: Improve failure message of java/nio/file/WatchService/SensitivityModifier.java
Reviewed-by: alanb
2021-04-02 19:53:18 +00:00
Brian Burkhalter
353807c5f1 8263898: (fs) Files.newOutputStream on the "NUL" special device throws FileSystemException: "nul: Incorrect function" (win)
Reviewed-by: jpai, alanb
2021-03-30 18:18:37 +00:00
Brian Burkhalter
450452bb8c 8254876: (fs) NullPointerException not thrown when first argument to Path.of or Paths.get is null
Reviewed-by: rriggs, alanb
2020-11-03 19:39:28 +00:00
Christian Stein
f61ce32770 8255576: (fs) Files.isHidden() throws ArrayIndexOutOfBoundsException (unix)
Reviewed-by: alanb
2020-11-01 12:39:43 +00:00
Nhat Nguyen
8c0d3d754b 8254195: java/nio/file/Files/SubstDrive.java failed with "AssertionError: expected [144951656448] but found [144951640064]"
Reviewed-by: alanb, bpb
2020-10-08 18:05:23 +00:00
Nhat Nguyen
abe2593772 8232092: (fs) Files::isWritable returns false on a writeable root directory (win)
Reviewed-by: alanb
2020-10-07 19:45:20 +00:00
Erik Joelsson
d8219d0a78 8213214: Set -Djava.io.tmpdir= when running tests
Reviewed-by: alanb, mikael
2020-06-23 06:51:35 -07:00
Mikael Vidstedt
071bd521bc 8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports
Reviewed-by: alanb, bchristi, dcubed, dfuchs, eosterlund, erikj, glaubitz, ihse, iignatyev, jjiang, kbarrett, ksrini, kvn, naoto, prr, rriggs, serb, sspitsyn, stefank, tschatzl, valeriep, weijun, weijun
2020-05-20 17:33:37 -07:00
Stefan Karlsson
81597d9f8f 8244078: ProcessTools executeTestJvm and createJavaProcessBuilder have inconsistent handling of test.*.opts
Reviewed-by: dholmes, cjplummer
2020-05-04 21:20:39 +02: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
Jesper Wilhelmsson
c6c828fa6e Merge 2020-01-23 22:59:49 +01:00
Brian Burkhalter
f4f7dbd54c 8225471: Test utility jdk.test.lib.util.FileUtils.areAllMountPointsAccessible needs to tolerate duplicates
Reviewed-by: alanb
2020-01-23 10:19:32 -08:00
Mikael Vidstedt
3318314c7c 8237589: Fix copyright header formatting
Reviewed-by: jjg, serb, iris, jwilhelm
2020-01-21 14:23:01 -08:00
Brian Burkhalter
fc2a8abcc0 8232178: MacVolumesTest failed after upgrade to MacOS Catalina
Reviewed-by: lancea
2019-11-07 13:53:38 -08:00
Brian Burkhalter
12178ec008 8231174: (fs) FileTime should have 100ns resolution (win)
Reviewed-by: alanb
2019-09-25 11:44:52 -07:00
Brian Burkhalter
d6b7266547 8231254: (fs) Add test for macOS Catalina changes to protect system software
Reviewed-by: alanb
2019-09-23 13:59:41 -07:00
Brian Burkhalter
d2db14b836 8229280: Test failures on several linux hosts after JDK-8181493
Reviewed-by: alanb, clanger, dfuchs
2019-09-05 14:12:01 -07:00
Brian Burkhalter
3155cd829b 8227609: (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size
Reviewed-by: alanb, lancea, fweimer
2019-07-30 09:46:06 -07:00
Brian Burkhalter
20ee82bf0a 8181493: (fs) Files.readAttributes(path, BasicFileAttributes.class) should preserve nano second time stamps
Reviewed-by: alanb, lancea
2019-07-29 08:48:52 -07:00
Brian Burkhalter
c6c82dd736 8227080: (fs) Files.newInputStream(...).skip(n) is slow
Reviewed-by: sbordet, rriggs, fweimer
2019-07-03 14:37:19 -07:00
Brian Burkhalter
185be26580 8224617: (fs) java/nio/file/FileStore/Basic.java found filesystem twice
Reviewed-by: alanb
2019-06-06 14:13:59 -07:00
Brian Burkhalter
2c35825433 8220793: (fs) No support for changing modification time of symlink
Reviewed-by: alanb, rriggs
2019-05-02 13:25:00 -07:00
Aleksey Shipilev
7fd0bca8f7 8222410: java/nio/file/attribute/BasicFileAttributeView/UnixSocketFile hangs when "nc" does not accept "-U"
Reviewed-by: alanb
2019-04-15 18:22:08 +02:00
Brian Burkhalter
5c5d27962a 8215467: Files.isHidden should return true for hidden directories on Windows
Reviewed-by: alanb, bchristi, darcy
2019-01-18 09:33:13 -08:00
Lance Andersen
d1951aa97c 8215372: Incorrect nio/file/DirectoryStream/Basic.java tests for validating the use of a glob
Reviewed-by: alanb
2018-12-14 14:17:22 -05:00
Joe Wang
a567796533 8202285: (fs) Add a method to Files for comparing file contents
Reviewed-by: alanb, rriggs, smarks, bpb, dfuchs, weijun, igerasim
2018-11-08 09:50:54 -08:00
Igor Ignatyev
21a0458422 8210112: remove jdk.testlibrary.ProcessTools
Reviewed-by: alanb, sspitsyn, jcbeyler
2018-09-07 14:01:52 -07:00
Joe Wang
0afc1b41c3 8209576: java.nio.file.Files.writeString writes garbled UTF-16 instead of UTF-8
Reviewed-by: sherman
2018-08-20 10:11:26 -07:00
Joe Wang
e5ac84c7b0 8205058: (fs) Files read/writeString should throw CharacterCodingException instead of IOException with an IllegalArgumentException as cause
Reviewed-by: sherman, alanb, lancea
2018-06-27 09:31:51 -07:00
Alan Bateman
807c4ae4a3 8205612: (fc) Files.readAllBytes fails with ClosedByInterruptException when interrupt status set
Reviewed-by: bpb
2018-06-26 08:13:02 +01:00
Brian Burkhalter
edbda00716 8205062: (fs) Improve some print diagnostics in java/nio/file/Files/CopyAndMove.java
Reviewed-by: alanb
2018-06-15 12:48:19 -07:00
Brian Burkhalter
06eb010e7e 8204915: (fs) Add some print diagnostics to java/nio/file/Files/CopyAndMove.java
Reviewed-by: bchristi
2018-06-13 13:12:50 -07:00
Joe Wang
ca487166f4 8201276: (fs) Add methods to Files for reading/writing a string from/to a file
Reviewed-by: rriggs, smarks, sherman, forax, alanb, mli
2018-06-13 12:50:45 -07:00
Brian Burkhalter
683eebde09 8204576: (fs) java/nio/file/Files/CopyAndMove.java does not set isUnix = true on macOS
Reviewed-by: alanb
2018-06-08 07:58:19 -07:00
Brian Burkhalter
e9f3b0e527 8201407: Files.move throws DirectoryNonEmptyException when moving directory across file system
Reviewed-by: alanb
2018-06-07 07:43:29 -07:00
Brian Burkhalter
dd07ad1703 8191872: (fs) UnixNativeDispatcher conditionally compiles in support for high precision timestamps
Remove POSIX conditional compilation and correct stat64 times for macOS

Reviewed-by: alanb, simonis
2017-12-07 08:56:04 -08:00
Brian Burkhalter
95c6c8ce11 8190501: (fs) Incorrect error message parameter in java/nio/file/Files/probeContentType/Basic.java
Replace expectedTypes with expectedTypes[i] in the line in question.

Reviewed-by: alanb
2017-11-03 10:18:27 -07:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00