RFR: JDK-8205090 Update of the Reader:nullReader() spec for the mark() method

Patrick Reinhart patrick at reini.net
Mon Jun 18 17:18:09 UTC 2018


Hi Everybody,

In the process of solving the issue [1] a part of the proper solution
should be a partially change of the Reader.nullReader() specification. I
opened a new CSR to address this. The main change would be to change to
following lines:

|* <p> The {@code markSupported()} method returns {@code false}. The *
{@code mark()} method does nothing, and the {@code reset()} method *
throws {@code IOException}.|

to this:

|* <p> The {@code markSupported()} method returns {@code false}. The *
{@code mark()} and {@code reset()} methods throw an {@code IOException}.|

Side note:

I got a additional comment from Krushnareddy Ganapureddy stating:

> additional Note - spec says "ready()), skip(long), and transferTo()
methods all behave as if end of stream has been reached"
> But there is not clear say on these methods [ ready(), skip(),
transferTo() ] what is the expected behavior "if end of stream reached"

We may able to address the issue above too. Any ideas how to address this?


-Patrick


[1] https://bugs.openjdk.java.net/browse/JDK-8204930




More information about the core-libs-dev mailing list