240 Commits

Author SHA1 Message Date
Brian Burkhalter
5b2d430131 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE
Reviewed-by: alanb, lancea
2023-02-14 16:30:52 +00:00
Brian Burkhalter
57798dd439 6595142: (spec) ByteArrayInputStream treats bytes, not characters
Reviewed-by: alanb
2023-02-10 19:43:30 +00:00
Jesper Wilhelmsson
af8973dc50 Merge 2023-02-09 11:59:08 +00:00
Roger Riggs
6f460e4885 8301863: ObjectInputFilter example incorrectly calls rejectUndecidedClass
Reviewed-by: lancea
2023-02-08 22:09:22 +00:00
Mandy Chung
10dd98d0dd 8301462: Convert Permission files to use lambda after JDK-8076596
Reviewed-by: jpai, dfuchs, mullan
2023-02-08 19:06:41 +00:00
Per Minborg
74e1a8bfa8 8300236: Use VarHandle access in Data(Input | Output)Stream classes
Reviewed-by: rriggs, alanb
2023-01-25 12:54:27 +00:00
Per Minborg
57f2d48e1e 8300863: Remove C-style array declarations in java.io
Reviewed-by: alanb, rriggs, darcy, iris
2023-01-24 07:43:29 +00:00
Per Minborg
d117350875 8300866: Declare some classes final in java.io
Reviewed-by: alanb
2023-01-23 19:09:39 +00:00
Per Minborg
4525aa318a 8300867: Fix document issues in java.io
Reviewed-by: alanb, lancea, iris
2023-01-23 17:53:20 +00:00
Per Minborg
a7f035db76 8300868: Reduce visibility in java.io.SerialCallbackContext
Reviewed-by: rriggs
2023-01-23 17:47:01 +00:00
Per Minborg
079255e312 8300864: Declare some fields in java.io as final
Reviewed-by: rriggs, lancea
2023-01-23 17:40:13 +00:00
Per Minborg
3462438ae1 8299576: Reimplement java.io.Bits using VarHandle access
Reviewed-by: uschindler, alanb
2023-01-17 07:44:26 +00:00
Jesper Wilhelmsson
4395578b6f Merge 2023-01-09 23:31:32 +00:00
Naoto Sato
d49851a8b8 8299689: Make use of JLine for Console as "opt-in"
Reviewed-by: jpai, alanb
2023-01-09 18:23:42 +00:00
Sergey Tsypanov
d086e82b3c 8299600: Use Objects.check*() where appropriate in java.io
Reviewed-by: alanb, bpb
2023-01-06 21:01:21 +00:00
Markus KARG
3dcf700161 8299336: InputStream::DEFAULT_BUFFER_SIZE should be 16384
Reviewed-by: bpb
2023-01-06 17:35:17 +00:00
Naoto Sato
7e59a0ecb6 8298971: Move Console implementation into jdk internal package
Reviewed-by: jpai
2022-12-21 18:09:21 +00:00
Jesper Wilhelmsson
c5a4a7a679 Merge 2022-12-20 11:40:56 +00:00
Roger Riggs
d0a7679d2e 4958969: ObjectOutputStream example leads to non-working code
Reviewed-by: lancea, naoto
2022-12-19 23:10:30 +00:00
Per Minborg
7938f8c32a 8298639: Perform I/O operations in bulk for RandomAccessFile
Co-authored-by: Sergey Tsypanov <stsypanov@openjdk.org>
Reviewed-by: alanb, bpb
2022-12-18 20:25:42 +00:00
Naoto Sato
0ef353925e 8298416: Console should be declared sealed
Reviewed-by: jpai, alanb
2022-12-15 19:20:12 +00:00
Per Minborg
81f57d568f 8298567: Make field in RandomAccessFile final
Reviewed-by: rriggs, chegar
2022-12-12 17:06:34 +00:00
Naoto Sato
8a9911ef17 8295803: Console should be usable in jshell and other environments
Reviewed-by: jlaskey, alanb
2022-12-07 20:49:29 +00:00
Markus KARG
389b8f4b78 8297298: SequenceInputStream should override transferTo
Reviewed-by: bpb
2022-12-07 16:29:43 +00:00
Weibing Xiao
8df3bc4ec5 8290313: Produce warning when user specified java.io.tmpdir directory doesn't exist
Reviewed-by: rriggs, naoto, coffeys
2022-11-23 17:10:05 +00:00
Markus Karg
069685489a 8297299: SequenceInputStream should not use Vector
Reviewed-by: alanb, jpai
2022-11-22 05:04:40 +00:00
Markus Karg
95b84050fc 8296431: PushbackInputStream should override transferTo
Reviewed-by: bpb
2022-11-14 18:03:18 +00:00
Markus Karg
581133a0c8 8294696: BufferedInputStream.transferTo should drain buffer when mark set
Reviewed-by: bpb, alanb
2022-11-04 21:07:59 +00:00
Daniel Fuchs
4338f527aa 8294241: Deprecate URL public constructors
Reviewed-by: joehw, prr, alanb, aefimov, michaelm
2022-11-03 17:18:14 +00:00
Brian Burkhalter
4999f2cb16 8156593: DataOutput.write(byte[],int,int) and its implementations do not specify index out bounds
Reviewed-by: alanb, aturbanov
2022-10-31 22:18:26 +00:00
Sergey Tsypanov
74a51ccc86 8292698: Improve performance of DataInputStream
Reviewed-by: dfuchs
2022-10-17 04:41:12 +00:00
Roger Riggs
2087424736 8295370: Update java.io.ObjectStreamField to use Class.descriptorString
Reviewed-by: bpb, mchung
2022-10-14 23:45:03 +00:00
Markus Karg
619cd825b5 8294702: BufferedInputStream uses undefined value range for markpos
Reviewed-by: alanb, bpb
2022-10-11 16:07:31 +00:00
Andrey Turbanov
375f02fb21 8294608: Remove redundant unchecked suppression in FileDescriptor
Reviewed-by: alanb, bpb
2022-09-30 20:19:45 +00:00
Markus Karg
7515b304ca 8279283: BufferedInputStream should override transferTo
Reviewed-by: bpb
2022-09-28 15:58:25 +00:00
Alan Bateman
acd5bcfc88 8289610: Degrade Thread.stop
Reviewed-by: rriggs, cjplummer, jpai, mchung, prr, mullan
2022-09-23 07:55:29 +00:00
XenoAmess
e01cd7c3ed 8284780: Need methods to create pre-sized HashSet and LinkedHashSet
Reviewed-by: naoto, bpb, dfuchs, ascarpino
2022-06-09 01:50:54 +00:00
Joe Darcy
8e602b862d 8286783: Expand use of @inheritDoc in InputStream and OutputStream subclasses
Reviewed-by: alanb
2022-05-17 16:14:28 +00:00
Brian Burkhalter
dbd3737085 8286200: SequenceInputStream::read(b, off, 0) returns -1 at EOF
Reviewed-by: rriggs
2022-05-16 15:42:29 +00:00
Joe Darcy
1e843c3d4f 8286604: Update InputStream and OutputStream to use @implSpec
Reviewed-by: bpb, lancea, iris, alanb
2022-05-13 16:57:11 +00:00
Roger Riggs
17c52789b7 8286378: Address possibly lossy conversions in java.base
Reviewed-by: naoto, xuelei, bpb, alanb
2022-05-12 16:50:36 +00:00
Alan Bateman
9583e3657e 8284161: Implementation of Virtual Threads (Preview)
Co-authored-by: Ron Pressler <rpressler@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Andrew Haley <aph@openjdk.org>
Co-authored-by: Rickard Bäckman <rbackman@openjdk.org>
Co-authored-by: Markus Grönlund <mgronlun@openjdk.org>
Co-authored-by: Leonid Mesnik <lmesnik@openjdk.org>
Co-authored-by: Serguei Spitsyn <sspitsyn@openjdk.org>
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Co-authored-by: Coleen Phillimore <coleenp@openjdk.org>
Co-authored-by: Robbin Ehn <rehn@openjdk.org>
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Co-authored-by: Sergey Kuksenko <skuksenko@openjdk.org>
Reviewed-by: lancea, eosterlund, rehn, sspitsyn, stefank, tschatzl, dfuchs, lmesnik, dcubed, kevinw, amenkov, dlong, mchung, psandoz, bpb, coleenp, smarks, egahlin, mseledtsov, coffeys, darcy
2022-05-07 08:06:16 +00:00
Brian Burkhalter
9d8c3bf9f8 8285745: Re-examine PushbackInputStream mark/reset
Reviewed-by: jpai, alanb
2022-05-02 18:19:36 +00:00
Naoto Sato
03bcf7b6d1 8283620: System.out does not use the encoding/charset specified in the Javadoc
Reviewed-by: alanb
2022-04-26 16:05:20 +00:00
Brian Burkhalter
a3b788144e 8284930: Re-examine FilterInputStream mark/reset
Reviewed-by: alanb, jpai, dfuchs, lancea
2022-04-26 15:35:45 +00:00
Brian Burkhalter
395bb5b7f9 8278356: Improve file creation
Reviewed-by: alanb, rhalade
2022-04-19 22:18:33 +00:00
Brian Burkhalter
f76f5da016 5087440: java.io bulk read(...) end-of-stream return value descriptions ambiguous
Reviewed-by: rriggs, lancea
2022-04-04 18:54:36 +00:00
Stuart Marks
ae57258b46 8283715: Update ObjectStreamClass to be final
Reviewed-by: darcy, jpai, mchung, dfuchs
2022-03-30 15:50:31 +00:00
Brian Burkhalter
13cebffe61 8058924: FileReader(String) documentation is insufficient
Reviewed-by: naoto, lancea
2022-03-14 16:10:15 +00:00
Brian Burkhalter
b13cacc575 8254574: PrintWriter handling of InterruptedIOException should be removed
Reviewed-by: alanb
2022-03-10 18:25:53 +00:00