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
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
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
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
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
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
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
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
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
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
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
Lana Steuck
657b9db1ba
8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
...
Updated files with 2011, 2012 and 2013 years according to the file's last updated date
Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Alan Bateman
804f3e85f3
8034175: Remove use of UseVMInterruptibleIO from tests
...
Reviewed-by: chegar
2014-02-11 10:49:07 +00:00
Alan Bateman
0abb2b14ed
8030795: java/nio/file/Files/probeContentType/ForceLoad.java failing with ServiceConfigurationError without jtreg -agentvm option
...
Reviewed-by: michaelm
2014-02-03 14:18:45 +00:00
Vladimir Kozlov
57b7b831ae
Merge
2014-01-28 14:57:41 -08:00
Alan Bateman
c276ce4f08
8032220: Files.createDirectories throws exception with confusing message for root directories that exist
...
Reviewed-by: chegar
2014-01-21 09:33:48 +00:00
Volker Simonis
70041ae4e4
8028537: PPC64: Updated the JDK regression tests to run on AIX
...
Co-authored-by: Jonathan Lu <luchsh@linux.vnet.ibm.com>
Co-authored-by: Steve Poole <spoole@linux.vnet.ibm.com>
Reviewed-by: alanb
2014-01-17 21:54:30 +01:00
Dan Xu
cf45a693dc
7065902: (file) test/java/nio/file/Files/Misc.java fails on Solaris 11 when run as root
...
Reviewed-by: alanb
2013-11-21 14:16:49 -08:00
Alan Bateman
fe37ddf865
8028270: Files.readSymbolicLink calls AccessController directly so security manager can't grant the permission
...
Reviewed-by: mchung, martin, chegar
2013-11-13 16:52:18 +00:00
Alan Bateman
0452f7b159
8026859: (fs) test/java/nio/file/Files/StreamTest.java fails to compile intermittently
...
Reviewed-by: psandoz
2013-10-18 13:45:54 +01:00
Alan Bateman
68b9f08d49
8019526: (fs) Files.lines, etc without Charset parameter
...
Reviewed-by: psandoz, henryjen
2013-10-11 20:47:15 +01:00
Alan Bateman
31fdd1b27c
8024788: (fs) Files.readAllBytes uses FileChannel which may not be supported by all providers
...
Reviewed-by: chegar
2013-10-08 10:49:09 +01:00
Brian Goetz
7bc062de1d
8017513: Support for closeable streams
...
8022237: j.u.s.BaseStream.onClose() has an issue in implementation or requires spec clarification
8022572: Same exception instances thrown from j.u.stream.Stream.onClose() handlers are not listed as suppressed
BaseStream implements AutoCloseable; Remove CloseableStream and DelegatingStream
Reviewed-by: alanb, mduigou, psandoz
2013-09-03 12:16:01 -07:00
Ivan Gerasimov
ebe38d6cdc
8020669: (fs) Files.readAllBytes() does not read any data when Files.size() is 0
...
Reviewed-by: alanb, chegar, martin, rriggs
2013-07-29 12:35:42 +04:00
Henry Jen
411df5ec90
8009736: Comparator API cleanup
...
Reviewed-by: psandoz, briangoetz, mduigou, plevart
2013-06-11 13:41:38 -07:00
Henry Jen
dafa777413
8014855: TEST_BUG: java/nio/file/Files/StreamTest.java fails when sym links not supported
...
Reviewed-by: alanb
2013-06-04 15:18:39 +01:00
Henry Jen
862e2f6a7d
8006884: (fs) Add Files.list, lines and find
...
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Reviewed-by: briangoetz, mduigou
2013-05-09 14:44:56 -07:00
Alan Bateman
6622dd4edf
8011128: (fs) Files.createDirectory fails if the resolved path is exactly 248 characters long
...
Reviewed-by: khazra, chegar
2013-05-10 14:53:33 +01:00
Alan Bateman
6878027374
8013647: JPRT unable to clean-up after tests that leave file trees with loops
...
Reviewed-by: chegar, tbell
2013-04-30 21:19:24 +01:00
Alan Bateman
1dea05c94f
8012930: (fs) Eliminate recursion from FileTreeWalker
...
Reviewed-by: chegar
2013-04-23 15:01:44 +01:00
Dan Xu
4994fe0840
8006645: TEST_BUG: java/nio/file/Files/CopyAndMove.java failing intermittently (sol)
...
Fix test failures and update java doc of Files.move
Reviewed-by: alanb, chegar
2013-03-01 14:12:59 -08:00
Alan Bateman
36e2ef2ba8
8005566: (fs) test/java/nio/file/Files/Misc.java failing (sol)
...
Reviewed-by: chegar
2013-01-11 12:27:57 +00:00
Mark Sheppard
c9063f559f
8003890: corelibs test scripts should pass TESTVMOPTS
...
Reviewed-by: chegar, alanb
2012-12-13 14:47:35 +00:00