145 Commits

Author SHA1 Message Date
Igor Ignatyev
f84b521220 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: alanb
2017-06-12 12:43:26 -07:00
Igor Ignatyev
ff3aa035f3 8181335: remove packageless CompilerUtils
Reviewed-by: alanb
2017-06-06 19:54:08 -07:00
Hamlin Li
2af3b0cc19 8180927: refactor ./java/io/Serializable/class/run.sh to java test
Reviewed-by: psandoz
2017-06-05 18:58:40 -07:00
Lana Steuck
ce477ddb3a Merge 2017-06-03 02:49:49 +00:00
Brian Burkhalter
06d33aa65a 8180885: Create test to detect if TimeZone.setDefault affects File.setLastModifiedTime
Check whether File.lastModified is affected by not setting the default time zone or by setting to any of the available time zones.

Reviewed-by: dfuchs, rriggs
2017-05-24 10:52:24 -07:00
Hamlin Li
4422752a4c 8166142: Refactor java.io.serialization shell tests to java
Reviewed-by: rriggs
2017-05-31 20:01:33 -07:00
Igor Ignatyev
551c6fdad3 8180805: move RandomFactory to the top level testlibrary
Reviewed-by: bpb, rriggs
2017-05-30 21:14:45 -07:00
Igor Ignatyev
c85d273e7d 8180887: move FileUtils to top level testlibrary
Reviewed-by: psandoz
2017-05-30 15:05:33 -07:00
Hamlin Li
56f5f73f1e 8180732: add test to check temp file permission
Reviewed-by: rriggs, bchristi
2017-05-25 18:16:01 -07:00
Brian Burkhalter
c7bb91a8f4 8177809: File.lastModified() is losing milliseconds (always ends in 000)
Use higher precision time values where available.

Reviewed-by: bchristi, rriggs
2017-05-18 12:53:19 -07:00
Magnus Ihse Bursie
97df63049c 8179889: Fix typographic errors in copyright headers
Reviewed-by: erikj, dholmes
2017-05-09 12:57:30 +02:00
Brian Burkhalter
db8bc54f61 8179452: Remove intermittent key from some tests which appear no longer to fail
Remove "intermittent" key

Reviewed-by: alanb, lancea, darcy
2017-04-28 16:14:57 -07:00
Roger Riggs
48795d4f02 8172299: Improve class processing
Reviewed-by: coffeys, chegar, ahgross, skoivu, rhalade
2017-02-03 14:10:33 -05:00
Weijun Wang
54b221f867 8177969: Faster FilePermission::implies by avoiding the use of Path::relativize
Reviewed-by: rriggs, mullan
2017-04-11 10:12:27 +08:00
Amy Lu
7e65c94ef9 8177383: Wrong @modules in java/io/FilePermission/ReadFileOnPath.java
Reviewed-by: alanb
2017-03-22 19:40:20 +08:00
Brian Burkhalter
ad6392624e 8176846: (fc) Increase timeouts of and instrument some tests using FileChannel#write
Change tests to improve odds of passing on slow file systems.

Reviewed-by: clanger, rriggs
2017-03-16 08:58:31 -07:00
Felix Yang
61c3a29e0c 8176195: Fix misc module dependencies in jdk_core tests
Reviewed-by: mchung
2017-03-08 17:17:41 -08:00
Hamlin Li
af9013c96e 8176337: Mark several tests as intermittently failing
Reviewed-by: darcy
2017-03-07 23:01:51 -08:00
Brian Burkhalter
323338dfaf 8175042: Add success message to java/io/FileInputStream/LargeFileAvailable.java
Print "Test succeeded" to stdout at the end of main()

Reviewed-by: lancea
2017-02-16 14:56:49 -08:00
Alan Bateman
a4693ee7d2 8173393: Module system implementation refresh (2/2017)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: dfuchs, psandoz, mchung, alanb
2017-02-10 09:04:39 +00:00
Amy Lu
f2be16d5f3 8156595: java/io/pathNames/GeneralWin32.java fail intermittently on windows-x64
Reviewed-by: psandoz
2017-01-16 21:17:24 +08:00
Brian Burkhalter
9d3f1e001a 8153250: java.io.File does not handle Windows paths of the form "D:" (no path) correctly
When resolving a child to a parent, do not insert a file separator for Windows directory-relative paths

Reviewed-by: rriggs
2017-01-13 14:58:21 -08:00
Brian Burkhalter
eeb1e36d49 8152272: Unable to create temporary file using createTempFile method if System.getProperty(file.separator) is used
Normalize the name component of the temporary file path

Reviewed-by: rriggs
2017-01-13 13:31:16 -08:00
Brian Burkhalter
2cae845615 8148023: File.createTempFile is not adhering to the contract regarding file name lengths
Truncate the prefix, suffix, random characters per the specification

Reviewed-by: rriggs
2016-12-20 11:46:09 -08:00
Weijun Wang
3c750bc54f 8168979: @implNote for invalid FilePermission
Reviewed-by: xuelei
2016-12-14 10:40:59 +08:00
Roger Riggs
1bcb7f93c0 8170291: Unpredictable results of j.i.ObjectInputFilter::createFilter
Reviewed-by: dfuchs
2016-12-07 15:32:31 -05:00
Alan Bateman
30bcdb962c Merge 2016-12-01 11:16:23 +00:00
Alan Bateman
fbe85300bf 8169069: Module system implementation refresh (11/2016)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Reviewed-by: plevart, chegar, psandoz, mchung, alanb, dfuchs, naoto, coffeys, weijun
2016-12-01 08:57:53 +00:00
Weijun Wang
22ba1d5ebb 8170364: FilePermission path modified during merge
Reviewed-by: alanb
2016-11-28 22:32:17 +08:00
Roger Riggs
4c951cbe57 8169055: [TESTBUG] java/io/Serializable/serialFilter/ tests have undeclared dependency on java.compiler module
Change serialFilter test to use type in java.base

Reviewed-by: dfuchs, chegar, skovalev
2016-11-03 12:29:05 -04:00
Weijun Wang
0527e4e401 8167646: Better invalid FilePermission
Reviewed-by: rriggs
2016-10-31 16:41:41 +08:00
Weijun Wang
2c2ce8ad1f 8168127: FilePermissionCollection merges incorrectly
Reviewed-by: rriggs
2016-10-31 16:40:31 +08:00
Roger Riggs
033650f9e0 8167192: [Testbug] java/io/Serializable/serialFilter test conditions wrong
Reviewed-by: lancea, mchung
2016-10-24 09:40:06 -04:00
Sibabrata Sahoo
05b72e77b7 8156054: Test Task: Develop new tests for JEP C155: Remove FilePermission Pathname Canonicalization
New test for removing canonicalize path from FilePermission.

Reviewed-by: weijun
2016-10-10 00:45:13 -07:00
Weijun Wang
ba9df3533c 8164705: Remove pathname canonicalization from FilePermission
Reviewed-by: alanb, bpb
2016-10-10 08:28:50 +08:00
Roger Riggs
9aa8b6728a 8155760: Implement Serialization Filtering
8166739: Improve extensibility of ObjectInputFilter information passed to the filter

Reviewed-by: dfuchs, chegar, briangoetz, plevart
2016-10-04 13:45:42 -04:00
Sergei Kovalev
72a44a46fa 8166553: undeclared dependencies for two IO tests
Reviewed-by: bpb
2016-09-23 12:08:38 +03:00
Ivan Gerasimov
cdf04f9c63 8163877: Tests added in JDK-8163518 fail on some platforms
Reviewed-by: darcy
2016-08-11 23:41:48 +03:00
Ivan Gerasimov
9088dcdb4a 8163518: Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
Reviewed-by: rriggs, shade
2016-08-11 17:03:40 +03:00
Brian Burkhalter
fadef405a9 8160215: jdk/test/java/io/Reader/ReaderBulkReadContract.java should clean up better
Create temporary files in the test scratch directory instead of in the default temporary file directory.

Reviewed-by: lancea, alanb
2016-07-11 17:18:59 -07:00
Felix Yang
6e722043e3 8153838: test/java/io/Serializable/failureAtomicity/FailureAtomicity.java doesnot declare module dependencies
Reviewed-by: alanb
2016-07-06 01:20:20 -07:00
Naoto Sato
ffd210aefb 8146156: Inconsistent default locale in string formatter methods
Reviewed-by: sherman
2016-06-06 10:52:21 -07:00
Vyom Tewari
719833448a 4823133: RandomAccessFile.length() is not thread-safe
RandomAccessFile.length() is not thread-safe

Reviewed-by: rriggs, dfuchs, martin, dsamersoff
2015-12-18 16:06:26 +05:30
Brian Burkhalter
7a0c72ef9c 8143394: PushbackReader throws NullPointerException
Synchronize on lock in close() to avoid NPE from read()-close() race.

Reviewed-by: alanb, dfuchs
2015-12-15 09:02:46 -08:00
Vyom Tewari
dc93a924ee 6856817: Poor performance of Writer#append with CharBuffer
Poor performance of Writer#append with CharBuffer

Reviewed-by: rriggs, dfuchs, sherman, shade
2015-12-02 21:32:40 +01:00
Chris Hegarty
9ce7c19d86 8135043: ObjectStreamClass.getField(String) too restrictive
Reviewed-by: igerasim
2015-09-08 12:40:57 +01:00
Martin Buchholz
a2f0fe3c94 8136583: Core libraries should use blessed modifier order
Run blessed-modifier-order script (see bug)

Reviewed-by: psandoz, chegar, alanb, plevart
2015-09-15 21:56:04 -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
Peter Levart
24d0d5af7c 8042377: BufferedWriter and FilteredOutputStream.close throw IAE if flush and close throw equal exceptions
Explcitly handle IOExceptions in FilteredOutputStream.close() instead of using try-with-resources approach.

Reviewed-by: chegar, alanb
2015-06-29 08:39:29 -07:00
Sean Mullan
e37ef5fefc 8056179: Store permissions in concurrent collections in PermissionCollection subclasses
8065942: Store PermissionCollection entries in a ConcurrentHashMap instead of a HashMap in Permissions class

Reviewed-by: weijun
2015-06-09 09:18:07 -04:00