Commit Graph

284 Commits

Author SHA1 Message Date
Ivan Gerasimov
f3e4326747 8137230: TEST_BUG: java/nio/channels/FileChannel/LoopingTruncate.java timed out
Reviewed-by: rriggs
2015-09-29 17:26:14 +03:00
Ivan Gerasimov
1613e728cc 8137121: (fc) Infinite loop FileChannel.truncate
Reviewed-by: alanb
2015-09-26 00:23:15 +03:00
Brian Burkhalter
005143e035 8135091: (fs) java/nio/file/Files/StreamLinesTest.java should test empty files
In lines() add zero length case and rearrange first loop to avoid duplicate cases.

Reviewed-by: rriggs
2015-09-04 14:16:34 -07:00
Martin Buchholz
24742f7b1d 8134984: Text files should end in exactly one newline
Automated fixup of newlines at end-of-file via the usual perl one-liner

Reviewed-by: chegar, sherman
2015-09-02 14:11:50 -07:00
Brian Burkhalter
44c462ee50 8133987: (fs) Rename GnomeFileTypeDetector to GioFileTypeDetector
Rename class and associated native file as indicated and fix some related comments in the source and test.

Reviewed-by: alanb
2015-08-28 10:46:43 -07:00
Brian Burkhalter
5924c95500 8132539: (fs) Files.lines(path).collect() returns wrong value in JDK 9 with certain files
Do not use the Spliterator approach for lines() if the FileChannel size is thought to be zero.

Reviewed-by: chegar
2015-08-12 07:55:24 -07:00
Brian Burkhalter
eb79060337 8133287: (fs) java/nio/file/Files/probeContentType/ParallelProbes.java should use othervm mode
Add @build tag containing ParallelProbes and SimpleFileTypeDetector and reinstate othervm mode.

Reviewed-by: darcy
2015-08-10 17:26:55 -07:00
Brian Burkhalter
aabba04bda 8132497: (fs) FileSystems.newFileSystem(URI, ..) doesn't handle UOE thrown by provider
Handle UOEs in newFileSystem(URI,...) similarly to as done in newFileSystem(Path path, ClassLoader loader).

Reviewed-by: chegar
2015-08-10 10:50:24 -07:00
Brian Burkhalter
e0803f5e68 8133207: ParallelProbes.java test fails after changes for JDK-8080115
Do not run in othervm mode.

Reviewed-by: darcy, rriggs
2015-08-07 16:09:10 -07:00
Brian Burkhalter
f0c2f24793 8080115: (fs) Crash in libgio when calling Files.probeContentType(path) from parallel threads
Make GnomeFileTypeDetector.probeGio() synchronized and add a regression test based on the test source included in JDK-8080115.

Reviewed-by: chegar
2015-08-07 07:10:44 -07:00
Brian Burkhalter
ba6e733ede 8129633: (fs) Investigate removing the GNOME-based FileTypeDetector from the Linux and Solaris implementations
Remove the GNOME VFS detector leaving the libgio detector in place.

Reviewed-by: chegar
2015-08-06 12:35:59 -07:00
Brian Burkhalter
8c92994887 8132795: Bug ID accidentally omitted from top level regression test in fix for JDK-8065556
Add 8065556 to list of IDs in the @bug tag list.

Reviewed-by: alanb
2015-07-31 07:48:34 -07:00
Brian Burkhalter
8a369f2f2c 8073078: java/nio/file/FileStore/Basic.java sensitive to NFS configuration
Ignore NoSuchFileExceptions as the store might have been deleted subsequent to creation of the FileStore iterator which is not dynamic.

Reviewed-by: alanb
2015-07-31 07:15:59 -07:00
Brian Burkhalter
7cd090f230 8065556: (bf) Buffer.position and other methods should include detail in IAE
Add messages to IAEs which have none.

Reviewed-by: alanb
2015-07-24 11:52:30 -07:00
Tristan Yan
7f9414bc11 8068761: Test java/nio/channels/ServerSocketChannel/AdaptServerSocket.java failed with SocketTimeoutException
Reviewed-by: rriggs
2015-07-21 14:15:59 -04:00
Brian Burkhalter
0ee4830a94 8065570: (bf spec) ByteBuffer.slice() should make it clear that the initial order is BIG_ENDIAN
Refine documentation of allocate*(), wrap(), slice(), duplicate(), asReadOnlyBuffer(), and as{Type}Buffer() to explcitly state the byte order of the created buffer.

Reviewed-by: alanb
2015-07-15 10:43:07 -07:00
Felix Yang
ea58ca6a25 8130394: DatagramChannel tests need to be hardended to ignore stray datagrams
The patch updates tests to ignore stray datagrams, or at least print more information to ease troubleshooting.

Reviewed-by: rriggs
2015-07-15 08:42:24 -07:00
Daniel D. Daugherty
10219ee9a2 Merge 2015-07-03 07:13:24 -07:00
Daniel D. Daugherty
bee43f05d7 Merge 2015-07-02 14:39:54 -07:00
Jean-Francois Denise
30cacaa5c9 8080511: Refresh of jimage support
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: alanb, mchung, psandoz, acorn, lfoltan, ctornqvi
2015-06-25 18:24:39 +02:00
Paul Sandoz
f219ffb2f2 8072773: (fs) Files.lines needs a better splitting implementation for stream source
Reviewed-by: alanb
2015-06-24 12:05:30 +02:00
Brian Burkhalter
9966dd8518 8081293: java/nio/file/Files/CopyAndMove.java failed with java.nio.file.FileAlreadyExistsException intermittently
Print seed used to initialize Random and add ability to specify seed.

Reviewed-by: alanb, chegar
2015-06-19 09:35:10 -07:00
Brian Burkhalter
bfe32f271f 8129632: (fs) Files.probeContentType returns null on Mac OS X
Append a Uniform Type Identifier-based FileType Detector for Mac OS X

Reviewed-by: alanb
2015-06-30 10:47:54 -07:00
Brian Burkhalter
0bc308ad38 8087304: (ch) java/nio/channels/DatagramChannel/EmptyBuffer.java received 4 times while expected 3
Only count datagrams received from the client within the test.

Reviewed-by: alanb, chegar
2015-06-16 14:38:51 -07:00
Mandy Chung
53a97cbeb3 8081347: Add @modules to jdk_core tests
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Reviewed-by: alanb, joehw, lancea
2015-05-28 10:54:48 -07:00
Brian Burkhalter
a6ad9cd49a 8080629: (fs) Re-enable ability to fsync() on directories even though read()s on those directories may fail
Revert fix applied to resolve JDK-8066915.

Reviewed-by: alanb
2015-05-19 07:12:10 -07:00
Amy Lu
94dbab9120 8079651: (dc) Promiscuous.java fails with NumberFormatException due to network interference
Reviewed-by: alanb, chegar
2015-05-08 10:22:18 +01:00
Brian Burkhalter
c0d7208b4b 8065109: (fs spec) Files.newBufferedWriter doesn't specify SecurityException for DELETE_ON_CLOSE option
Add to specification of newBufferedWriter() and write() methods that the DELETE_ON_CLOSE option triggers invoking checkDelete().

Reviewed-by: alanb
2015-05-07 16:12:10 -07:00
Joe Darcy
86c109e149 8078334: Mark regression tests using randomness
Reviewed-by: xuelei, alanb
2015-04-29 10:25:53 -07:00
Chris Hegarty
1392515988 8076644: MulticastSendReceiveTests.java fails with NumberFormatException due to network interference
Reviewed-by: alanb
2015-04-03 16:09:49 +01:00
Joe Darcy
07cd371738 8075670: Remove intermittent keyword from some tests
Reviewed-by: alanb
2015-03-23 09:45:32 -07:00
Brian Burkhalter
1eb4f850a6 8075655: NIO test generation scripts have incorrect path to Spp.java
Correct the path to Spp.java

Reviewed-by: rriggs
2015-03-20 15:25:07 -07:00
Joe Darcy
2596979bfe 8075565: Define @intermittent jtreg keyword and mark intermittently failing jdk tests
Reviewed-by: lancea
2015-03-19 18:38:26 -07:00
Brian Burkhalter
bd61d670c3 8073445: (fs) FileSystem.getPathMatcher(...) should check syntax component without regard to case
Change String equals() to equalsIgnoreCase() where needed.

Reviewed-by: alanb
2015-03-04 15:05:41 -08:00
Brian Burkhalter
03088bb6e6 8071599: (so) Socket adapter sendUrgentData throws IllegalBlockingMode when channel configured non-blocking
Remove restriction to blocking case

Reviewed-by: alanb, chegar
2015-02-27 14:36:03 -08:00
Xueming Shen
7f950ef63d 8073924: Update test/java/nio/charset/Charset/NIOCharsetAvailability.java to work with module system
To use module's runtime filesystem to iterate the class files

Reviewed-by: alanb
2015-02-26 14:40:43 -08:00
Sean Coffey
79240eab9b 8071447: IBM1166 Locale Request for Kazakh characters
Reviewed-by: sherman
2015-02-26 09:36:30 +00:00
Xueming Shen
1eb1419d72 8073152: Update Standard/ExtendedCharsets to work with module system
To reorganize the standard and extendec charset configuration during build time

Reviewed-by: alanb
2015-02-16 14:53:59 -08:00
Brian Burkhalter
980fb58833 8072495: (fs) Path.relativize() gives incorrect result for empty path on Windows
Correct handling of empty path in Windows version of relativize()

Reviewed-by: alanb, dfuchs
2015-02-06 08:05:44 -08:00
Brian Burkhalter
2a8d5c46e1 6880737: (fs) FileLock constructors don't throw NPE if the channel argument is null
Throw IllegalArgumentException if the channel parameter is null

Reviewed-by: alanb
2015-01-30 12:56:12 -08:00
Sean Coffey
c20d40c269 8068507: (fc) Rename the new jdk.net.enableFastFileTransfer system property to jdk.nio.enableFastFileTransfer
Reviewed-by: alanb
2015-01-08 11:44:10 +00:00
Brian Burkhalter
871abc48e4 8025619: (fc) FileInputStream.getChannel on closed stream returns FileChannel that doesn't know that stream is closed
If the stream is closed ensure getChannel() returns a closed channel. Also, FileKey.create() should throw an IOException directly instead of wrapping it in an Error.

Reviewed-by: alanb
2014-12-15 12:09:49 -08:00
Alan Bateman
ccab6bc563 8066915: (fs) Files.newByteChannel opens directories for cases where subsequent reads may fail
Reviewed-by: chegar
2014-12-10 15:01:26 +00:00
Kirk Shoop
9eafb6c406 8064407: (fc) FileChannel transferTo should use TransmitFile on Windows
Co-authored-by: Valeriy Kopylov <v-valkop@microsoft.com>
Reviewed-by: alanb
2014-12-07 07:10:29 +00:00
Chris Hegarty
43842f6349 Merge 2014-12-03 19:28:35 +00:00
Amy Lu
65904e6ad1 8066131: Update java/nio/charset/Charset/NIOCharsetAvailabilityTest.java to eliminate dependency on sun.misc.Launcher
Reviewed-by: alanb
2014-12-03 14:34:42 +00:00
Chris Hegarty
441905cdc7 8049367: Modular Run-Time Images
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
2014-12-03 14:22:58 +00:00
Alan Bateman
f0b198804a 8062955: (fs spec) Files.setLastModifiedTime should specify SecurityException more clearly
8062949: (fs) Files.setLastModifiedTime(path, null) does not throw NPE

Reviewed-by: chegar
2014-11-28 14:58:10 +00:00
Richard Warburton
a065473cfc 4774077: Use covariant return types in the NIO buffer hierarchy
Reviewed-by: psandoz, alanb, mr, darcy
2014-10-29 14:10:34 +01:00
Kirk Shoop
d03eadea27 8060170: Support SIO_LOOPBACK_FAST_PATH option on Windows
Co-authored-by: Valeriy Kopylov <v-valkop@microsoft.com>
Reviewed-by: alanb
2014-10-19 11:52:53 +01:00