RFR: 8258444: Clean up specifications of java.io.Reader.read(char[], int, int) in subclass overrides
Brian Burkhalter
bpb at openjdk.java.net
Tue Feb 23 16:22:40 UTC 2021
On Tue, 23 Feb 2021 08:48:16 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> 8258444: Clean up specifications of java.io.Reader.read(char[],int,int) in subclass overrides
>
> src/java.base/share/classes/java/io/InputStreamReader.java line 167:
>
>> 165: * {@inheritDoc}
>> 166: */
>> 167: public int read(char[] cbuf, int off, int len) throws IOException {
>
> IOOBE is unchecked, are you sure it gets inherited into the sub-class here?
It does not due to https://bugs.openjdk.java.net/browse/JDK-8157677.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2680
More information about the core-libs-dev
mailing list