Commit Graph

100 Commits

Author SHA1 Message Date
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
Chris Hegarty
46b53cd5cf 8080835: Add blocking bulk read to java.io.InputStream
Reviewed-by: alanb, rriggs, prappo
2015-06-04 10:27:06 +01:00
Chris Hegarty
e11aec59a2 8071474: Better failure atomicity for default read object
Reviewed-by: plevart, coffeys
2015-06-03 15:30:44 +01:00
Pavel Rappo
431c16c78d 8029689: (spec) Reader.read(char[], int, int) throws unspecified IndexOutOfBoundsException
Reviewed-by: chegar, lancea
2015-05-12 13:59:31 +01:00
Joe Darcy
86c109e149 8078334: Mark regression tests using randomness
Reviewed-by: xuelei, alanb
2015-04-29 10:25:53 -07:00
Chris Hegarty
0ade1fd974 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out
Reviewed-by: rriggs, smarks
2015-03-05 09:38:45 +00:00
Brent Christian
76ace03a9e 8068578: test/java/io/Serializable/subclassGC/SubclassGC.java assumes app class loader is a URLClassLoader
Reviewed-by: alanb
2015-01-29 14:49:15 -08:00
Chris Hegarty
916c818ec2 8054565: FilterOutputStream.close may throw IOException if called twice and underlying flush or close fails
Co-authored-by: Nathan Clement <nathan.a.clement@hotmail.com>
Reviewed-by: alanb, prappo
2015-01-04 19:32:46 +00:00
Pavel Rappo
69df2fa9e5 8067870: Fix java.io.ObjectInputStream.PeekInputStream#skip
Reviewed-by: rriggs, alanb
2014-12-18 16:44:32 +00:00
Pavel Rappo
a21f0f99a9 8066867: Add InputStream transferTo to transfer content to an OutputStream
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Patrick Reinhart <patrick@reini.net>
Reviewed-by: chegar
2014-12-16 12:43:36 +00:00
Jan Lahoda
56d2ce25a9 8065998: Avoid use of _ as a one-character identifier
Reviewed-by: alanb, chegar, darcy
2014-12-02 15:12:40 +01: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
Ivan Gerasimov
b051027d6f 8023173: FileDescriptor should respect append flag
Reviewed-by: martin, alanb, rriggs
2014-10-28 15:36:27 +03:00
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