133 Commits

Author SHA1 Message Date
Brian Burkhalter
dc3e5ed9fb 8164556: Drop AAC and FLAC from content type check in java/nio/file/Files/probeContentType/Basic.java
Remove file extensions of AAC and FLAC audio encodings from the list of extensions verified.

Reviewed-by: alanb
2016-08-23 10:51:17 -07:00
Artem Smotrakov
4b68f37bfe 8164159: java/nio/file/WatchService/UpdateInterference.java test leaves daemon threads
Reviewed-by: alanb
2016-08-23 10:38:01 -07:00
Brian Burkhalter
13f73f71eb 8164432: java/nio/file/Files/probeContentType/Basic.java fails on windows for Content type: audio/vnd.dlna.adts
Add audio/vnd.dlna.adts as an allowed MIME type for the aac extension.

Reviewed-by: darcy
2016-08-19 13:38:12 -07:00
Brian Burkhalter
ba0558addb 8163431: probeContentType/Basic.java fails after changes for JDK-8146215
Allow multiple legal MIME type interpretations for certain extensions.

Reviewed-by: chegar
2016-08-09 07:43:48 -07:00
Brian Burkhalter
97b666ee29 8162745: content-types.properties files are missing some modern types
Add some content types from HTML5 and Xiph.

Reviewed-by: rriggs, chegar
2016-08-08 13:58:14 -07:00
Brian Burkhalter
522e112b4a 8146215: (fs) java/nio/file/Files/probeContentType/Basic.java failed frequently on Solaris-sparc with Unexpected type: text/plain
Append a FileTypeDetector using java.net.FileNameMap as a fallback on all platforms

Reviewed-by: alanb, rriggs, naoto
2016-08-08 13:57:51 -07:00
Brian Burkhalter
0af4f24e45 8162902: Add some debugging output to test/java/nio/file/WatchService/DeleteInterference
Add printing of iteration numbers

Reviewed-by: alanb
2016-08-04 14:29:27 -07:00
Brian Burkhalter
82e9d18d0e 8162624: (fs) Remove FileTypeDetectors based on libgio and libmagic
Remove GioFileTypeDetector and MagicFileTypeDetector.

Reviewed-by: alanb
2016-07-27 14:27:46 -07:00
Brian Burkhalter
eba2a20a2b 8160220: (fs) Tests in jdk/test/java/nio/file/WatchService leave directory trees behind
Create temporary files by default in a scratch directory.

Reviewed-by: alanb, chegar
2016-07-15 17:49:42 -07:00
Brian Burkhalter
465af0b962 8157287: java/nio/file/FileStore/Basic.java failed with "java.nio.file.AccessDeniedException : /zones/zoneone/root "
Ignore AccessDeniedException when testing space attributes.

Reviewed-by: alanb
2016-07-08 16:16:45 -07:00
Brian Burkhalter
70e069ea5d 8160687: (fs) Cannot tell which WatchService test is not deleting temp directories "work*"
Change name of "work" temp directory to "TestName"

Reviewed-by: rriggs
2016-07-01 12:54:18 -07:00
Alan Bateman
40abbd6d10 8140449: (fs) Paths.get("x").relativize("") return ..\ on Windows
Reviewed-by: chegar, rriggs
2016-06-17 17:17:21 +01:00
Alan Bateman
a5e1465831 8066258: Re-examine com.sun.nio.file to see if it should be a supported API
Reviewed-by: chegar
2016-05-30 17:38:05 +01:00
Alex Kashchenko
39846dcf8d 8153925: (fs) WatchService hangs on GetOverlappedResult and locks directory (win)
Co-authored-by: Thomas Mader <tmader@redhat.com>
Reviewed-by: alanb
2016-05-03 07:44:52 +01:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Brian Burkhalter
4ccb461831 8150204: (fs) Enhance java/nio/file/Files/probeContentType/Basic.java debugging output
Add debugging information to the test.

Reviewed-by: alanb
2016-02-15 16:59:56 -08:00
Alan Bateman
c464136491 8148192: (fs) Path.register can fail with Bad file descriptor and other errors
Reviewed-by: chegar
2016-01-28 12:55:19 +00:00
Brian Burkhalter
6739382299 8146359: test/java/nio/file/attribute/BasicFileAttributeView/UnixSocketFile.java fails when nc is not available
Check for presence of netcat command using 'which' before running test

Reviewed-by: alanb
2016-01-05 16:03:36 -08:00
Sebastian Sickelmann
053032b76c 8145981: (fs) LinuxWatchService can reports events against wrong directory
Fixes wakeup mechanism of LinuxWatchService and introduces a test

Reviewed-by: alanb
2015-12-30 19:20:51 +01:00
Brian Burkhalter
031af5cb63 8133986: (fs) Remove file deletion from test/java/nio/file/FileSystem/Basic.java checkNoUOE() method
Do not delete file which provoked an unexpected exception.

Reviewed-by: alanb
2015-12-11 08:30:50 -08:00
Brian Burkhalter
30abf404b3 8139133: Changing the modification time on a unix domain socket file fails
If a file descriptor cannot be obtained, use utimes() instead of futimes().

Reviewed-by: alanb
2015-12-10 15:57:27 -08:00
Felix Yang
3c5dd5581c 8143015: 5 tests fail with error "Can't find source for class: java.util.stream.OpTestCase"
Reviewed-by: weijun
2015-11-16 12:54:01 +08: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
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
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
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
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
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
Joe Darcy
07cd371738 8075670: Remove intermittent keyword from some tests
Reviewed-by: alanb
2015-03-23 09:45:32 -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
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
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
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
Alan Bateman
2689839d79 8029516: (fs) WatchKey cancel unreliable on Windows
Reviewed-by: chegar
2014-09-05 12:18:31 +01:00
Ivan Gerasimov
686936042d 8042470: (fs) Path.register doesn't throw IllegalArgumentException if multiple OVERFLOW events are specified
Reviewed-by: alanb, chegar
2014-05-07 16:50:40 +04:00
Ivan Gerasimov
b845d7541e 8011537: (fs) Path.register(..) clears interrupt status of thread with no InterruptedException
Reviewed-by: alanb
2014-05-07 09:43:40 +04:00