Commit Graph

83 Commits

Author SHA1 Message Date
Martin Buchholz
619ef479f3 8055949: ByteArrayOutputStream capacity should be maximal array size permitted by VM
Try to resize to "well-known" hotspot max array size first.

Reviewed-by: alanb, mduigou
2014-08-25 10:40:55 -07:00
Valerie Peng
efa54ce543 8043406: Change default policy for JCE providers to run with as few privileges as possible
Provide default permissions for crypto providers

Reviewed-by: mullan, vinnie
2014-07-10 22:44:58 +00:00
Jeremy Manson
179fd7be27 8048840: File.createTempFile has uninformative failure message
Reviewed-by: martin, alanb
2014-07-02 14:14:17 -07:00
Katja Kantserova
0c78d5f9e3 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, alanb
2014-05-09 15:24:57 +02:00
Ivan Gerasimov
c738b124d3 8039396: NPE when writing a class descriptor object to a custom ObjectOutputStream
Reviewed-by: alanb
2014-04-16 12:37:49 +04:00
Ivan Gerasimov
106b5b9af8 7011804: SequenceInputStream with lots of empty substreams can cause StackOverflowError
Reviewed-by: chegar, alanb
2014-03-13 07:52:17 +04: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
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
Henry Jen
40d9b1af54 8029434: Spliterator of Stream returned by BufferedReader.lines() should have NONNULL characteristic
Reviewed-by: mduigou
2013-12-04 08:12:11 -08:00
Lana Steuck
33cd414e58 Merge 2013-11-25 09:40:25 -08:00
Lana Steuck
1a633e63a9 Merge 2013-11-15 07:14:23 -08:00
Dan Xu
b33443f947 8028631: Improve the test coverage to the pathname handling on unix-like platforms
Add GeneralSolaris.java testcase and fix the concurrency issue

Reviewed-by: lancea, chegar, alanb
2013-11-19 13:22:50 -08:00
Sergey Bylokhov
9ab430a0d2 8027696: Incorrect copyright header in the tests
Reviewed-by: alanb, malenkov, mullan
2013-11-12 20:24:25 +04:00
Dan Xu
3fdca18433 8027612: java/io/File/MaxPathLength.java fails intermittently in the clean-up stage
Reviewed-by: chegar
2013-11-04 15:48:08 -08:00
Dan Xu
6c3fabc342 8027155: test/java/io/File/NulFile.java failing when test run in othervm mode
Reviewed-by: mchung, alanb
2013-10-31 11:52:30 -07:00
Dan Xu
512fbc2a59 8025128: File.createTempFile fails if prefix is absolute path
Use only the file name from the supplied prefix for backward compatibility

Reviewed-by: alanb, chegar
2013-09-27 17:09:25 -07:00
Dan Xu
d6854baa4e 8023765: Improve MaxPathLength.java testcase and reduce its test load
7160013: java/io/File/MaxPathLength.java fails

Reviewed-by: alanb
2013-08-30 16:45:45 -07:00
Dan Xu
ae3b889b67 4792059: test/java/io/pathNames/GeneralSolaris.java fails on symbolic links
Exclude the possible usage of linked files or directories in the test

Reviewed-by: alanb
2013-08-29 10:43:46 -07:00
Ivan Gerasimov
910d9b815c 7129312: BufferedInputStream calculates negative array size with large streams and mark
Reviewed-by: alanb
2013-08-25 23:20:59 +04:00
Dan Xu
31584b6b19 8023430: Replace File.mkdirs with Files.createDirectories to get MaxPathLength.java failure details
Reviewed-by: alanb
2013-08-22 11:43:18 -07:00
Dan Xu
bcc5da3b77 4858457: File.getCanonicalPath() throws IOException when invoked with "nul" (win)
Reviewed-by: alanb
2013-08-15 12:36:50 -07:00
Dan Xu
94e1bc3172 8017212: File.createTempFile requires unnecessary "read" permission
Directly call FileSystem method to check a file existence. Also reviewed by tom.hawtin@oracle.com

Reviewed-by: alanb
2013-07-11 13:40:25 -07:00
Dan Xu
41f703dac2 8013827: File.createTempFile hangs with temp file starting with 'com1.4'
8011950: java.io.File.createTempFile enters infinite loop when passed invalid data

Reviewed-by: alanb
2013-06-10 11:06:26 -07:00
Dan Xu
99e8d73193 8015628: Test Failure in closed/java/io/pathNames/GeneralSolaris.java
Reviewed-by: alanb
2013-05-31 13:34:27 -07:00
Yiming Wang
ebea2d8168 8009258: TEST_BUG:java/io/pathNames/GeneralWin32.java fails intermittently
Reviewed-by: dxu, alanb
2013-05-28 22:22:48 -07:00
Rob McKenna
87a429a457 7038105: File.isHidden() should return true for pagefile.sys and hiberfil.sys
Reviewed-by: alanb
2013-05-28 16:35:17 +01:00
Dan Xu
a8783e010f 8011136: FileInputStream.available and skip inconsistencies
Correct the behavior of available() and update related java specs for available() and skip() in InputStream and FileInputStream classes.

Reviewed-by: alanb
2013-05-17 12:04:18 -07:00
Brian Goetz
68101a98fd 8003258: BufferedReader.lines()
Co-authored-by: Henry Jen <henry.jen@oracle.com>
Reviewed-by: alanb, mduigou, psandoz
2013-05-06 20:54:54 -07:00
Dan Xu
c31fc852f1 8003992: File and other classes in java.io do not handle embedded nulls properly
Have every file operation done with File, FileInputStream, FileOutputStream, or RandomAccessFile that involves a file path containing NUL fail. Also reviewed by fweimer@redhat.com

Reviewed-by: alanb, sherman, ahgross, mduigou, dholmes, aph, plevart, martin
2013-05-06 14:17:59 -07:00
Alan Bateman
3db24cefee 8005555: TEST_BUG: java/io/Serializable/accessConstants/AccessConstants.java should be removed
Reviewed-by: chegar
2013-04-24 19:03:07 +01:00
Dan Xu
2ffe97f06e 8010837: FileInputStream.available() throw IOException when encountering negative available values
Remove the check in the native code to allow negative values

Reviewed-by: mchung
2013-03-27 09:00:34 -07:00
Alan Bateman
c12b624078 8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
Reviewed-by: chegar
2013-01-11 20:19:55 +00:00
Alexey Utkin
c5c34df7bf 8004928: TEST_BUG: Reduce dependence of CoreLib tests from the AWT subsystem
The tests were refactored to drop AWT dependence where it was possible.

Reviewed-by: alanb, mchung
2012-12-17 14:34:37 +04:00
Mark Sheppard
c9063f559f 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
2012-12-13 14:47:35 +00:00
Alexey Utkin
d869bfa179 7162111: TEST_BUG: change tests run in headless mode [macosx] (open)
In problem tests detection of AWT headless mode was introduced or AWT dependence was removed.

Reviewed-by: alanb
2012-11-26 15:54:39 +04:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Dan Xu
6e283062c6 7186817: Remove Windows 95/98/ME Support
Reviewed-by: alanb
2012-10-11 11:47:05 +01:00
Eric Wang
25c7724d6e 6962637: TEST_BUG: java/io/File/MaxPathLength.java may fail in busy system
Reviewed-by: dholmes, alanb
2012-08-28 11:12:46 +01:00
Rob McKenna
e892fb5b1d 6931128: (spec) File attribute tests fail when run as root
Reviewed-by: alanb
2012-08-15 22:46:35 +01:00
Eric Wang
3ba6a2dff8 7076644: TEST_BUG: test/java/io/File/Basic.java fails with cygwin
Reviewed-by: alanb
2012-08-07 12:47:45 +01:00
Xueming Shen
067447f6c6 7130915: File.equals does not give expected results when path contains Non-English characters on Mac OS X
To support Unicode nfd/nfc file path on Macos

Reviewed-by: alanb
2012-07-19 21:23:53 -07:00
James Melvin
d090606f36 7130404: [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6
On Mac OS X, align system property "os.arch" with Apple legacy JDKs.  Also, improve os.name string matching by using .contains() method instead of .startsWith(). This fix spans multiple repositories.

Reviewed-by: dcubed, phh, ohair, katleman
2012-04-16 18:09:53 -04:00
Alan Bateman
3ecf3e0fa1 7152866: Tests not run because they are missing the @run tag
Reviewed-by: chegar, dholmes
2012-03-12 10:17:18 +00:00
Alan Bateman
3269d85838 7113349: Initial changeset for Macosx port to jdk
Co-authored-by: Alexander Potochkin <alexander.potochkin@oracle.com>
Co-authored-by: Alexander Zuev <alexander.zuev@oracle.com>
Co-authored-by: Andrew Brygin <andrew.brygin@oracle.com>
Co-authored-by: Artem Ananiev <artem.ananiev@oracle.com>
Co-authored-by: Alex Strange <astrange@apple.com>
Co-authored-by: Bino George <bino@apple.com>
Co-authored-by: Christine Lu <christine.lu@oracle.com>
Co-authored-by: David Katleman <david.katleman@oracle.com>
Co-authored-by: David Durrence <david_durrence@apple.com>
Co-authored-by: Dmitry Cherepanov <dmitry.cherepanov@oracle.com>
Co-authored-by: Greg Lewis <glewis@eyesbeyond.com>
Co-authored-by: Kevin Miller <kevin_m_miller@apple.com>
Co-authored-by: Kurt Miller <kurt@intricatesoftware.com>
Co-authored-by: Landon Fuller <landonf@plausiblelabs.com>
Co-authored-by: Leonid Romanov <leonid.romanov@oracle.com>
Co-authored-by: Loefty Walkowiak <loefty@apple.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Roger Hoover <rhoover@apple.com>
Co-authored-by: Scott Kovatch <scott.kovatch@oracle.com>
Co-authored-by: Sergey ByloKhov <sergey.bylokhov@oracle.com>
Co-authored-by: Mike Swingler <swingler@apple.com>
Co-authored-by: Tomas Hurka <tomas.hurka@oracle.com>
Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks
2012-03-06 20:34:38 +00:00
Abhijit Saha
162d75c68c Merge 2012-02-20 11:31:53 -08:00
Chris Hegarty
8d3dc3ed37 6671616: TEST_BUG: java/io/File/BlockIsDirectory.java fails when /dev/dsk empty (sol)
Reviewed-by: alanb
2012-01-17 14:10:04 +00:00
Gary Adams
6eb76c4598 7030573: test/java/io/FileInputStream/LargeFileAvailable.java fails when there is insufficient disk space
Reviewed-by: alanb
2012-01-09 19:33:02 +00:00
Stuart Marks
348fa7b88e 7112267: clean up fix for 7110700
Reviewed-by: dmeetry
2011-11-17 15:04:46 -08:00
Stuart Marks
d6e13af09c 7110700: Enhance exception throwing mechanism in ObjectStreamClass
Reviewed-by: dmeetry, hawtin
2011-11-11 15:22:11 -08:00
Sean Coffey
9e42e3d20a 7105952: Improve finalisation for FileInputStream/FileOutputStream/RandomAccessFile
Reviewed-by: alanb
2011-11-11 10:08:40 +00:00